Collection 老祖先,接口(interface)
List 子接口
ArrayList,LinkedList,Vector 实现类
Set 子接口
HashSet(无序),TreeSet(有序)
在java.util 包
<E>泛型参数 contain=包含 equal=相等 empty=空 遍历:循环查找集合中的所有元素
set和list接口的区别:list是有索引的,set是无索引的
Collection 老祖先,接口(interface)
List 子接口
ArrayList,LinkedList,Vector 实现类
Set 子接口
HashSet(无序),TreeSet(有序)
在java.util 包
<E>泛型参数 contain=包含 equal=相等 empty=空 遍历:循环查找集合中的所有元素
set和list接口的区别:list是有索引的,set是无索引的