摘要:
List<String> idList = new ArrayList<>(); idList.add("1"); idList.add("1"); //初始化HashSet对象,并把list对象元素赋值给HashSet对象 HashSet<String> set = new HashSet<>(idList); //把List集合清空 idList.clear(); //把HashSet对象添加 阅读全文
posted @ 2019-09-26 10:14
lost_s
阅读(208)
评论(0)
推荐(0)

浙公网安备 33010602011771号