摘要: ArrayList有三种方式来初始化,构造方法源码如下: //默认初始化容量大小 private static final int DEFAULT_CAPACITY = 10; //最大数组值,超过报内存溢出 private static final int MAX_ARRAY_SIZE = Int 阅读全文
posted @ 2020-08-23 15:56 MrOldx 阅读(184) 评论(0) 推荐(0) 编辑