摘要: 1、取交集(取两个集合中都存在的元素) HashSet<String> setA = new HashSet<>(); HashSet<String> setB = new HashSet<>();//用于存放结果 HashSet<String> resSet = new HashSet<>(); 阅读全文
posted @ 2021-09-29 20:46 CEO雷总 阅读(7321) 评论(0) 推荐(0)