摘要: 有两种方法,一种是去重不带顺序的,一种是去重带顺序的。 /* * 方法1: 无顺序 * Hastset根据hashcode判断是否重复,数据不会重复 */ public static List deleteDuplicate(List list){ Set set = new HashSet(list); list.clear(); list.addAll(... 阅读全文
posted @ 2016-09-03 22:25 ✈✈✈ 阅读(328) 评论(0) 推荐(0) 编辑