Collection
Collection有三个子接口:List, Set和Queue

List特点是元素有序,且可重复。实现的常用集合类有ArrayList、LinkedList,和Vector(线程安全)。

Set特点是元素无序,不可重复。实现的常用集合类有HashSet,LinkedHashSet,TreeSet(可排序)

posted on 2024-01-10 08:43  杨申龙  阅读(45)  评论(0)    收藏  举报