Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    What happened when you tried it? What does the javadoc of HashMap say? Commented Apr 12, 2016 at 18:09
  • The javadoc's 5th paragraph ("If many mappings...") says something about hashCode(), but I can't quite get the answer I need. Could point out the portion I need to read/focus on? Commented Apr 12, 2016 at 18:16
  • @sargas Your question doesn't mention hashCode. The hashCode is used to determine the index of the array the entry is stored in. If too many entries have the same hashCode, it will slow down the performance. Commented Apr 12, 2016 at 18:22
  • @PaulBoddington Correct. And I just found what I was looking for in the Map Interface documentation. Thanks. Commented Apr 12, 2016 at 18:26