方法1
public static boolean isEmpty(String str){
if(str==null||"".equals(str)){
return true;
}
return false;
}
方法2
TextUtils.isEmpty("需要判断的字符串");
public static boolean isEmpty(String str){
if(str==null||"".equals(str)){
return true;
}
return false;
}
TextUtils.isEmpty("需要判断的字符串");