/** * 去掉list重复值 */ public List<String> removeDuplicate(List<String> list) { HashSet<String> hashSet = new HashSet<String>(list); list.clear(); list.addAll(hashSet); return list; }