public static boolean containsWhitespace(final CharSequence seq){
  if (isEmpty(seq)) {
    return false;
  }
  final int strLen=seq.length();
  for (int i=0; i < strLen; i++) {
    if (Character.isWhitespace(seq.charAt(i))) {
      return true;
    }
  }
  return false;
}

public static boolean containsWhitespace ( final CharSequence seq ) { if ( isEmpty ( seq ) ) { return false ; } final int strLen = seq . length ( ) ; for ( int i = 0 ; i < strLen ; i ++ ) { if ( Character . isWhitespace ( seq . charAt ( i ) ) ) { return true ; } } return false ; }
check whether the given charsequence contains any whitespace characters .
