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 98ae0e7

Browse files
Update ArrayList.md
1 parent aff1f0a commit 98ae0e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Java相关/ArrayList.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class ArrayList<E> extends AbstractList<E>
8585
}
8686

8787
/**
88-
*默认构造函数,其默认初始容量为10
88+
*默认构造函数,DEFAULTCAPACITY_EMPTY_ELEMENTDATA 为0.初始化为10,也就是说初始其实是空数组 当添加第一个元素的时候数组容量才变成10
8989
*/
9090
public ArrayList() {
9191
this.elementData = DEFAULTCAPACITY_EMPTY_ELEMENTDATA;

0 commit comments

Comments
(0)

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