(ArrayList<String> strings)
| 146 | } |
| 147 | // 去重代码 |
| 148 | public static List<String> removeDuplicate (ArrayList<String> strings){ |
| 149 | List<String> list2 = new ArrayList<String>(strings); |
| 150 | list2 = list2.stream().distinct().collect(Collectors.toList()); |
| 151 | return list2; |
| 152 | } |
| 153 | |
| 154 | } |