http://tfy1332.iteye.com/
public static boolean foo(CharSequence cs) { int strLen; if (cs == null || (strLen = cs.length()) == 0) { return true; } for (int i = 0; i < strLen; i++) { if (Character.isWhitespace(cs.charAt(i)) == false) { return false; } } return true; }
原文链接:https://www.f2er.com/nosql/204201.html