Split a string into an array with undefined whitespaces
I have this data that I'm trying to split up into separate parts, the only problem is is that the whitespaces in between each value isn't the same. For example:
2010 1 5.1 0.9 11 55.4 86.1#
String values = input.split("\\s+");
Tokenize the string, then remove whitespace. I will leave the implementation up to you in case this is homework.