Look at the Scanner and StringTokenizer classes for ways to parse/break up Strings into words.
Type: Posts; User: Norm
Look at the Scanner and StringTokenizer classes for ways to parse/break up Strings into words.
To count the words, you'll need a way to save the words and associate them with a count. See the classes that implement the Map interface for a tool to do this.