- public void removeDuplicate(List list) {
- HashSet h = new HashSet(list);
- list.clear();
- list.addAll(h);
- }
- public void removeDuplicate(List list) {
- HashSet h = new HashSet(list);
- list.clear();
- list.addAll(h);
- }
List to repeat
Guess you like
Origin blog.csdn.net/qq_32405433/article/details/78708039
Ranking