集合取差

集合取差集:

List<Integer> reduce2 = list1.stream().filter(item -> !list.contains(item)).collect(toList());
posted @ 2020-08-14 22:49  Pseudo-lover  阅读(198)  评论(0)    收藏  举报