\\b(\\s+)\\b what does this mean
It's the (regular expression, aka regex) pattern that the
split method will use to split up the string into an array.
The way to find out is to look up the (
split) method in the String class api, scroll down to find the method in the Method Summary section, select the link to see the details about in the Method Detail section. At the end of the detail for
split is a link to the Pattern class api where you can find out more info.
You can also find out more about RegularExpressions in
Lesson: Regular Expressions.
If this is too much to deal with you can fall back to using methods in the String class which are introduced in
Strings.