07 2018 档案

摘要:[TOC] HashMap概述   前面我们分析了基于数组实现的ArrayList和基于双向链表实现的LinkedList,它们各有优缺点:ArrayList查找元素快但是插入删除元素慢,LinkedList插入删除元素快但是查找元素慢。那么有没有一种数据对象能够做到高效的查询和 阅读全文
posted @ 2018-07-28 08:54 默数至天亮 阅读(663) 评论(0) 推荐(0)
摘要:[TOC] LinkedList   JDK api对LinkedList的介绍: Doubly linked list implementation of the List and Deque interfaces. Implements all optional list o 阅读全文
posted @ 2018-07-18 10:43 默数至天亮 阅读(592) 评论(2) 推荐(0)
摘要:[TOC] ArrayList分析   JDK api对ArrayList是这样介绍的: Resizable array implementation of the List interface. Implements all optional list operations, 阅读全文
posted @ 2018-07-07 16:00 默数至天亮 阅读(302) 评论(0) 推荐(0)