Java中取多个集合的交集——retainAll()
Java中取多个集合的交集集合 Collection 接口中定义了 retainAll()方法retainAll()Retains only the elements in this set that are contained in the specified collection (optional operation). In other words, removes from this set all of its elements that are not contained in the
原创
2021-11-29 23:01:17 ·
11251 阅读 ·
1 评论