Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { /** * isStringEmpty * <p> * Check if the given string is empty * * @return return true if the string is null or len-of-zero */ public static boolean isStringEmpty(String str) { return (str == null || TextUtils.isEmpty(str)); } }