Android examples for java.lang:String Null or Empty
is String Null Or Empty
public class Main{ public static boolean isNullOrEmpty(String str) { return str == null || str.trim().length() == 0; }//from w ww . j a v a 2 s . c om }