摘要: ArrayList是继承自List接口的动态数组,允许null元素,不允许并发。 ArrayList的构造方法有三种: 1.第一种是无初始化值,默认容量会赋值为10。 1 /** 2 * Constructs an empty list with an initial capacity of ten 阅读全文
posted @ 2020-07-10 15:16 123xp 阅读(155) 评论(0) 推荐(0) 编辑