itwanger / itwanger/toBeBetterJavaer

HashMap中左移运算符描述问题

Open
#65 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
17.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

image
可以补充上,运算数是int 类型时,一共32位,每移动1位它的第31位就要被移出并且丢弃,光用8位的二进制来表示对于初学者来说不易理解

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the HashMap left-shift operator description shown in the attached image and locate the corresponding Java documentation text. Clarify the explanation for int operands using 32-bit representation, including that bits shifted out of the 31st position are discarded. Done means the description is understandable to beginners and no longer relies only on an 8-bit example.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.