![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
源码
源码
a816120
这个作者很懒,什么都没留下…
展开
-
看一看ArrayList的源码?
首先,类名 public class ArrayList<E> 明显看到有泛型,这个先放一放,看看属性: /** * The array buffer into which the elements of the ArrayList are stored. * The capacity of the ArrayList is the length of this array buffer. Any * empty ArrayList with elementDat原创 2020-07-17 17:34:27 · 117 阅读 · 0 评论 -
看一看LinkedList的源码?
LinkedList底层通过双向链表实现,双向链表的每个节点用内部类Node表示。LinkedList通过first和last引用分别指向链表的第一个和最后一个元素。当链表为空的时候first和last都指向null。 看一下LinkedList的属性: public class LinkedList<E> extends AbstractSequentialList<E> implements List<E>, Deque<E>, Clone原创 2020-08-07 16:16:07 · 112 阅读 · 0 评论