优乐 发表于 2014-8-29 10:20
HashMap底层是链表数组的结构(LinkedList[ ]),他的put方法存放键值对到数组的顺序是根据key.hashCode()% ...
hejinzhong 发表于 2014-8-29 10:48
大哥!你去看看字符串的HachCode方法怎么覆写的!
优乐 发表于 2014-8-29 10:51
为什么要看字符串的HachCode方法怎么覆写的
hejinzhong 发表于 2014-8-29 10:48
大哥!你去看看字符串的HachCode方法怎么覆写的!
hejinzhong 发表于 2014-8-29 10:59
我存储的是字符串类型的编号,难道存的时候不是调用他自己的HashCode方法?
...
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |