Collection 是集合类的上级接口,子接口主要是 list、set、map。
Collections 是一个针对集合类的帮助类,提供了操作集合的工具方法。
Collection 中
List 常见:ArrayList、Vector 、LinkedList
Set:hashset,set 、TreeSet
map:hashmap 、 Linkedhashmap、Treemap、Properties
Collection 是集合类的上级接口,子接口主要是 list、set、map。
Collections 是一个针对集合类的帮助类,提供了操作集合的工具方法。
Collection 中
List 常见:ArrayList、Vector 、LinkedList
Set:hashset,set 、TreeSet
map:hashmap 、 Linkedhashmap、Treemap、Properties
转载于:https://my.oschina.net/u/3973793/blog/3096687