/** * Check whether the given String contains any whitespace characters. * @param str the String to check (may be <code>null</code>) * @return <code>true</code> if the String is not empty and * contains at least 1 whitespace character * @see #containsWhitespace(CharSequence) */ public static boolean containsWhitespace(String str) { return containsWhitespace((CharSequence) str); }