For example: after execution, the output of the String "hello world yo"
and "hello world yo"
should be strictly the same.
what's more, the output should be a String[]
in which:
String[0] == "hello"; String[1] == "world"; String[2] == "yo";
so that other method can deal with the effective words latter.
I was thinking about String.split(" ")
, but the blanks between the words are uncertain, and will then cause an exception..