List一段代码去重

来源:互联网 发布:数据库怎么定义主键 编辑:程序博客网 时间:2024/06/05 01:59
List<T>  newList = new ArrayList<T>(new Hashset<T>(oldList))