![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JDK源码那些事
flysun55
这个作者很懒,什么都没留下…
展开
-
JDK1.8ArrayList源码分析2
E get(int index) 因为ArrayList是采用数组结构来存储的,所以它的get方法非常简单,先是判断一下有没有越界,之后就可以直接通过数组下标来获取元素了,所以get的时间复杂度是O(1)。 /** * Returns the element at the specified position in this list. * 返回列表中指定位置的元素。...原创 2018-10-13 21:28:25 · 364 阅读 · 0 评论 -
JDK1.8ArrayList源码分析1
概述 Resizable-array implementation of the <tt>List</tt> interface. Implements all optional list operations, and permits all elements, includ原创 2018-10-10 23:18:58 · 170 阅读 · 0 评论