string to int help

i need to write a prgm that takes in a string and counts the no. of time a letter is used and output the most frequent. then do the same thing for wordsi need to convert the string to numbers. how do i do this. i converted it to string with str.toCharArray();
[280 byte] By [infiniteammoa] at [2007-10-1 0:14:12]
# 1

Think about it.

If you still can't come up with any code - working or otherwise - maybe you need to back-track and cover the basics one more time. Read the java tutorials. Talk to your teacher or classmates about the problem, etc.

Look at the problem from a real-world perspective. You have a sentence in front of you, how many times doesn the word "sentence" appear in that sentence? How do you know? What did you have to do to figure that out? Haw mana a's ara an thas santanca? How did you figure that out? Can you make java do the same thing?

~Chaars

Adeodatusa at 2007-7-7 15:58:33 > top of Java-index,Java Essentials,Java Programming...
# 2
Perhaps this is too much to think about all at once. Most probably you are going to have to 'visit' each character in the string, and do something for each character. Can you at least get started and visit every character. Once that is done, you can move on to do some more of the
dmbdmba at 2007-7-7 15:58:33 > top of Java-index,Java Essentials,Java Programming...