HashMap何时重写hashcode和equals方法,为何须要重写

转载自:http://bdcwl.blog.163.com/blog/static/765222652009112744733937/ HashSet内部是经过HashMap实现。只有使用排序的时候才使用TreeMap。否知使用HashMap。 HashSet  set = new HashSet set.put(new Student(1,"aa") ); set.put(new Student
相关文章
相关标签/搜索