Day 17 set 集合

1,hashSet Set 接口  無序 不可重複ide   特有方法:   無this Set set = new HashSet(); spa ---| Set 接口   無序  不可重複  ------| HashSet  底層維護是一個【哈希表】,存儲效率很高!!!  ------| TreeSet     發現:   1. 添加元素的時候,每一次都會調用hashCode方法   2. 重
相關文章
相關標籤/搜索