验证 list 集合不为空的判断
****
/** * 判断集合是否为空 * * @param list * 集合 */ public static boolean isEmpty(List list) { if (list != null && list.size() > 0) { return false; } else { return true; } }
验证 list 集合不为空的判断
****
/** * 判断集合是否为空 * * @param list * 集合 */ public static boolean isEmpty(List list) { if (list != null && list.size() > 0) { return false; } else { return true; } }
转载于:https://www.cnblogs.com/lzf2018315/p/8675842.html