From a87b064460a10a18ecab3dac656f7bcd96668c8a Mon Sep 17 00:00:00 2001 From: Omooo <869759698@qq.com> Date: Tue, 31 Mar 2020 18:33:46 +0800 Subject: [PATCH] =?UTF-8?q?Update=20ArrayList=20=E4=B8=8E=20Vector=20?= =?UTF-8?q?=E6=BA=90=E7=A0=81=E5=88=86=E6=9E=90.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blogs/集合/ArrayList 与 Vector 源码分析.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/blogs/集合/ArrayList 与 Vector 源码分析.md b/blogs/集合/ArrayList 与 Vector 源码分析.md index efff4b1..ceda761 100644 --- a/blogs/集合/ArrayList 与 Vector 源码分析.md +++ b/blogs/集合/ArrayList 与 Vector 源码分析.md @@ -155,4 +155,8 @@ private int size; //数组大小 } ``` -所以,可以把Vector理解为一个加锁的ArrayList。 \ No newline at end of file +所以,可以把Vector理解为一个加锁的ArrayList。 + +#### 更新 + +1. ArrayList 无参构造器初始化时,默认大小是空数组,并不是大家常说的 10,10 是在第一次 add 的时候扩容的数组值。 \ No newline at end of file