private static boolean deduplication(List list) { Set s = new HashSet(list); if (s.size()==1) { return true; }else { return false; } }
java判断List<String>中是否全部相等
于 2022-01-12 13:19:12 首次发布
private static boolean deduplication(List list) { Set s = new HashSet(list); if (s.size()==1) { return true; }else { return false; } }