> The method trim() of String has the ability to remove
> 'white space'-characters from the beginning and end
> of the string (actually, it creates a new String, but
> you know what I mean). Is there a method that allows
> me to go to the next non-'white space' character in
> a string?
indexOf method
> How does indexOf help me find the first non-'white
> space'-character? (Note that I'm not looking for a
> specific character, but for any character that is not
> 'white space'.)
you use indexOf to find list of the 'white space' index at that string
based on that result, you can find the list of non 'white space' index
or you can use java.util.regex package for another alternative