Right now my code only separates words by white space, but I also want to separate by '.' and "," too. Here is my current code:
for (String words : input.split("\\s+"))
For example, if the user entered "bread,milk,eggs" or "Um...awkss" It would consider that one word, and I want each word to be it's own word.
And while I'm here, I can't get
input.isAlpha()
to work either.