摘要: HashMap.resize() 链表扩容图解 Q1:如何理解扩容时(e.hash & oldCap) == 0? Q2:如何理解扩容时newTab[j + oldCap]? 设:HashMap.table = table[4] table[1]=X1->X2->X3->X4 1=X1.hash&( 阅读全文
posted @ 2020-04-29 11:26 tony_hu_messi 阅读(1027) 评论(0) 推荐(0)