摘要: 首先来看一下HashMap的构成 HashMap有 table Entry[]; 存放key/value值得数组 size:int 容量 threshold:int 扩容阈值 holdfactor:float 扩容参数 table的一个index对应于同一个hash值,所以 get方法: put方法 阅读全文