摘要: ArrayList 实现原理:由数组实现的。元素有序,允许重复。 //其中增长长度的方法,可以看到是创建一个新数组,传入旧数组和新的数组长度。 private void grow(int minCapacity) { // overflow-conscious code int oldCapacit 阅读全文
posted @ 2018-04-29 21:37 海角在眼前 阅读(243) 评论(0) 推荐(1) 编辑