一行代码 将List 集合 中的 元素去重

Set set = new HashSet(list); 将List 集合作为参数 新建 HashSet 集合 即可;
原文地址:https://www.cnblogs.com/cjd01/p/14083009.html