判断字符串是否为空:
public class StrUtils {
public static boolean isEmpty(String str){
if(str==null||"".equals(str)){
return true;
}
return false;
}
}
public class StrUtils {
public static boolean isEmpty(String str){
if(str==null||"".equals(str)){
return true;
}
return false;
}
}