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.

Required fields*

3
  • 1
    Are you sure A.equals(B) is true? Commented Jan 18, 2018 at 2:18
  • 1
    Why do you think it's "operating on key's hashCode only"? key gets passed to getNode, too, not just its hash code. Commented Jan 18, 2018 at 2:35
  • The overloaded equals method in String converts the given parameter into String, so you can't pass the character B directly to the equals method. Commented Jan 18, 2018 at 5:28