|
Analyze a string of words
Hi, I'm coding a small GUI app that analyze a string of words.
It counts the number of words and the longest words length.
I'm currently using indexOf() and substring() methods to find the first word in the string, but I am lost on how to get the second words and so on extracted.
Any ideas for this?
Thanks.
|