Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f3182f9

Browse files
Update ArrayList-Grow.md
1 parent 25e66b2 commit f3182f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎docs/java/collection/ArrayList-Grow.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
return true;
7575
}
7676
```
77+
78+
> **注意** :JDK11 移除了 `ensureCapacityInternal()``ensureExplicitCapacity()` 方法
79+
7780
### 2. 再来看看 `ensureCapacityInternal()` 方法
7881

7982
可以看到 `add` 方法 首先调用了`ensureCapacityInternal(size + 1)`

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /