判断集合不为空Java

list.size>0判断集合size是否大于0

list.isEmpty()判断集合是否为空,返回布尔值

原文地址:https://www.cnblogs.com/minshia/p/6798728.html