public static int findWhitespace(CharSequence s,int start){
  final int len=s.length();
  for (int i=start; i < len; i++) {
    if (Character.isWhitespace(s.charAt(i))) {
      return i;
    }
  }
  return len;
}

public static int findWhitespace ( CharSequence s , int start ) { final int len = s . length ( ) ; for ( int i = start ; i < len ; i ++ ) { if ( Character . isWhitespace ( s . charAt ( i ) ) ) { return i ; } } return len ; }
finds and returns the first whitespace character in the given sequence at or after start . returns the length of the string if no whitespace is found .
