I can\'t seem to find the syntax needed for the for loop in this method. I am looking to iterate through the words in the string suit.
suit
EDIT: one thing t
You could use
for (String word : suit.split(" ")) {
to split on every space character (U+0020).
Alternatively:
for (String word : suit.split("\\s+")) {
This splits on every sequence of whitespace character (this includes tabs, newlines etc).