11 2021 档案
摘要:很明显 new ArrayList()是创建一个Collection实例,它是Collection集合下面的一个实现类(中间继承了AbstractList),它的实例有Collection的增加,删除,修改等方法, ArrayList平常用的很多,这里就不过多说明,主要说一下Collections.
阅读全文
摘要:ArrayList<DeptEntity> disList = newList.stream().collect( Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparin
阅读全文

浙公网安备 33010602011771号