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
It may help you somehow.
String st="I am am not the one who is thinking I one thing at time"; String []ar = st.split("\\s"); Map mp= new HashMap(); int count=0; for(int i=0;i