摘要: 面试碰到几次list的去重和排序。下面介绍一种做法: 1. list去重 1.1 实体类Student List<Student>容量10k以上,要求去重复。这里Student的重复标准是属性相同,因此需要重写equals和hashcode方法,不知道有几个可以手写出来。 student的equal 阅读全文
posted @ 2016-03-29 20:49 Ryan.Miao 阅读(27263) 评论(2) 推荐(0) 编辑