摘要:
List: ArrayList implements RandomAccess, but LinkedList implements Queue. If an ArrayList's capacity is not enough, JVM makes it bigger by oldCapacity * 3 / 2 + 1. Set: TreeSet implements SortedSet. ... 阅读全文
摘要:
http://www.blogjava.net/jungleford/archive/2005/04/02/2759.html 对于Java集合框架(Java Collections Framework,JCF),Java玩家大概都不会陌生,在C++里面相似的概念是标准模板库(Standard Template Library,STL),主要是对一些数据结构和相关算法的封装。考虑到这是一个Jav... 阅读全文