首页 > Java基础>正文 jdk1.8去重 2020-11-24 许燊 (753) newList = newList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(Annex :: getOrigSysId))), ArrayList::new)); 打赏 分享 Java基础
当前共有 条评论