1.常见对象判断为空
Student student=new Student();
判断
if(student==null || "".equals(student)){
}
2.常见集合判断为空
List list=new List;
//1.第一种使用集合报装类判断是否为空
if(CollectionUtils.isEmpty(list)){
sout("集合为空")
}
List list1=new List;
//2.第二种判断集合是否为空
if(list1!=null && !list.isEmpty){
sout("集合不为空")
}





