Skip to content

JDK 1.8 HashMap put 方法中链表插入位置的错误描述 #357

Description

@YongS998
Image 当遍历到链表尾部仍未找到相同 key 时,执行 p.next = newNode(hash, key, value, null);,新节点被挂载在尾部。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions