![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
抱走你就跑
这个作者很懒,什么都没留下…
展开
-
LinkedList add(E,index)操作
LinkedList本质是一个链表,与ArrayList (本质是数组)不同;一下通过源码分析LinkedList的add函数 public void add(int index, E element) { //检查index的合法性 checkPositionIndex(index); //如果是index==size则在list后面添加进去;如果是si...原创 2018-04-23 16:46:33 · 2240 阅读 · 0 评论 -
Java HashMap数据结构分析
Java HashMap数据结构分析HashMap的本质是一个数组+单向链表的结构;即数组中的每一个元素包含一个单向链表数组 transient Node<K,V>[] table; 链表元素 static class Node<K,V> implements Map.Entry<K,V> { final int hash; f...原创 2018-04-23 17:44:26 · 172 阅读 · 0 评论 -
可重入锁和不可重入锁(转)
https://www.cnblogs.com/dj3839/p/6580765.html转载 2018-06-27 17:20:15 · 394 阅读 · 0 评论