判断不为空的条件
1.不能是null
2.不能为空格
public class StringUtils{
private StringUtils(){
}
static boolean empty(){
return str !=null && !"".equals(str.trim());
}
}
判断不为空的条件
1.不能是null
2.不能为空格
public class StringUtils{
private StringUtils(){
}
static boolean empty(){
return str !=null && !"".equals(str.trim());
}
}