Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public final static boolean isNotEmpty(CharSequence target) { return !TextUtils.isEmpty(target); } }