方法一:list.isEmpty()
方法二:list.size() ==0
方法三:list == null
判断list集合是否为空的方法
原文:https://www.cnblogs.com/vegetableDD/p/11657670.html