Here you can find the source of isNotBlank(String str)
public static boolean isNotBlank(String str)
import java.util.Random; import java.util.regex.Matcher; import java.util.regex.Pattern; import android.text.Html; public class Main{ public static boolean isNotBlank(String str) { return !StringUtil.isBlank(str); }//from w w w .j a v a2s. c om public static boolean isBlank(String str) { int strLen; if (str == null || (strLen = str.length()) == 0 || "null".equals(str)) { return true; } for (int i = 0; i < strLen; i++) { if ((Character.isWhitespace(str.charAt(i)) == false)) { return false; } } return true; } }