Java tutorial
//package com.java2s; //License from project: Open Source License import android.text.TextUtils; public class Main { public static boolean isNotBlank(String str) { return !TextUtils.isEmpty(str) && !TextUtils.isEmpty(str.trim()); } }