You don't need a StringTokenizer to figure this out... All you need is to a Scanner object to find words, and then parse through those words to see if they have the letter, and if so how many of that...