Skip to content

Commit 98ae0e7

Browse files
authored
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

+1-1
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)