List<String> collectAfter = students.stream().map(Student::getName).distinct().collect(Collectors.toList());
disdinct()去重
最新推荐文章于 2024-07-24 21:47:59 发布
List<String> collectAfter = students.stream().map(Student::getName).distinct().collect(Collectors.toList());