Java Collection Framework Test
2008-10-23 10:04
316 查看
一、HashSet
1、泛型。will type check. use HashSet<object> to assign the item type. 2、HashSet 的容量可以自动增减。 3、add item . 不是先进先出或是后进先出,item 是无序的。不能增加重复item. item 区分大小写。
二、TreeSet 1、add item,throws ClassCastException ,so,it only can add the same type item. 2、item 是排序的。
三、LinkedHashSet 1、add item 是有序的.
1、泛型。will type check. use HashSet<object> to assign the item type. 2、HashSet 的容量可以自动增减。 3、add item . 不是先进先出或是后进先出,item 是无序的。不能增加重复item. item 区分大小写。
二、TreeSet 1、add item,throws ClassCastException ,so,it only can add the same type item. 2、item 是排序的。
三、LinkedHashSet 1、add item 是有序的.
相关文章推荐
- Java Collection Framework Test
- Java Collection Framework
- Java Collection Framework
- java collection framework
- 设计: ListView 接口,and the missing read-only interfaces in java collection framework
- 设计: ListView 接口,and the missing read-only interfaces in java collection framework
- Java Collection Framework : Collection 接口
- Java Collection Framework 之 ArrayList 源码解析
- Junit 抛出错误 java.lang.NoClassDefFoundError: Could not initialize class org.springframework.test.conte
- Java Collection的Framework
- 【转】java collection framework
- Java Collection Framework
- Java之Collection Framework
- java collection framework
- Java Collection Framework
- Java Collection Framework
- Java Collection Framework 之集合概述
- Java Collection Framework 中List 和 Map遍历总结
- Java Collection Framework : List
- Java Collection Framework