Java 8中使用stream去重List对象集合(单个属性,多个属性)
单属性:List<Course> arrayList = courseThirds.stream().collect( Collectors.collectingAndThen(Collectors.toCollection( () -> new TreeSet<>(Comparator.comparing( Course::getBjmc))),ArrayList::new));多属性:List&