I need to find repeated words on a string, and then count how many times they were repeated. So basically, if the input string is this:
String s = \"House, House
If this is a homework, then all I can say is: use String.split() and HashMap.
String.split()
HashMap
(I see you've found split() already. You're along the right lines then.)