Skip to content

Commit cfcb331

Browse files
committed
修正错别字
1 parent a1a499f commit cfcb331

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/jdk/java-src-hashmap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ categories:
1111
> 文章已经收录在 [Github.com/niumoo/JavaNotes](https://github.com/niumoo/JavaNotes) ,更有 Java 程序员所需要掌握的核心知识,欢迎Star和指教。
1212
> 欢迎关注我的[公众号](https://github.com/niumoo/JavaNotes#%E5%85%AC%E4%BC%97%E5%8F%B7),文章每周更新。
1313
14-
HashMap 作为最常用的集合类之一,有必要深入浅出的了解一下。这篇文章会深入到 HashMap 源码,刨析它的存储结构以及工作机制
14+
HashMap 作为最常用的集合类之一,有必要深入浅出的了解一下。这篇文章会深入到 HashMap 源码,剖析它的存储结构以及工作机制
1515

1616
### 1. HashMap 的存储结构
1717

@@ -222,7 +222,7 @@ hash 结果 = 0001 0100 1100 0010 0111 0101 1110 0100 ---
222222
# 得到位置 = 0000 0000 0000 0000 0000 0000 0000 0100 得到位置是 4
223223
```
224224

225-
如果又新增一个数据,得到 hash 值是 `0100 0000 1110 0010 1010 0010‬ 0001 0000` ,容量还是16,计算他的位置应该是什么呢
225+
如果又新增一个数据,得到 hash 值是 `0100 0000 1110 0010 1010 0010‬ 0001 0000` ,容量还是16,计算它的位置应该是什么呢
226226

227227
```java
228228
hash = 0100 0000 1110 0010 1010 00100001 0000 ---

0 commit comments

Comments
 (0)