Hashmap淺解

集合 集合分爲Collection和map collection中包含list,set,queue。 map有Treemap和Hashmap。 Hashmap hashmap是一種數組加鏈表的結構 用value和key來存儲標記。map使用了一種將key映射到值的對象。 特點 1.存儲:位置index=key.hashcode%map.length hashcode方法確保每個key的code值唯
相關文章
相關標籤/搜索