public static boolean containsWhitespace(String text) {
        if (isEmpty(text)) {
            return false;
        }
        for (int i = 0; i < text.length(); i++) {
            if (Character.isWhitespace(text.charAt(i))) {
                return true;
            }
        }
        return false;
    }
public static boolean containsWhitespace ( String text ) { if ( isEmpty ( text ) ) { return false ; } for ( int i = 0 ; i < text . length ( ) ; i ++ ) { if ( Character . isWhitespace ( text . charAt ( i ) ) ) { return true ; } } return false ; }
@param text
@return <code>true</code> if the given text contains a whitespace
character