question: public static boolean containsWhitespace ( CharSequence str ) { if ( ! hasLength ( str ) ) { return false ; } int strLen = str . length ( ) ; for ( int i = 0 ; i < strLen ; i ++ ) { if ( Character . isWhitespace ( str . charAt ( i ) ) ) { return true ; } } return false ; }
target:  Check whether the given CharSequence contains any whitespace characters.