摘要: 两种都行1. List<String> strings = 你要去重的集合.stream().distinct().collect(Collectors.toList()); 2. List<String> strings = new ArrayList<>(new TreeSet<>(你要去重的集 阅读全文
posted @ 2022-03-16 17:32 up-zyn 阅读(45) 评论(0) 推荐(0) 编辑