public static List<String> removeDuplicate(List<String> list) {
HashSet<String> h = new HashSet<String>(list);
list.clear();
list.addAll(h);
return list;
}
原文地址:https://www.cnblogs.com/yazoon/p/11429857.html
时间: 2024-10-10 15:33:51
public static List<String> removeDuplicate(List<String> list) {
HashSet<String> h = new HashSet<String>(list);
list.clear();
list.addAll(h);
return list;
}
原文地址:https://www.cnblogs.com/yazoon/p/11429857.html