package Standard; /** * Created by nibnait on 2016/9/11. */ public class StringUtils { public static boolean isNotBlank(String str) { return !isBlank(str); } public static boolean isBlank(String str) { int strLen; if (str == null || (strLen = str.length()) == 0) { return true; } for (int i = 0; i < strLen; i++) { if ((Character.isWhitespace(str.charAt(i)) == false)) { return false; } } return true; } }