【Java】集合复习 —— Iterator、List、Set和Queue

首先上一个简明扼要的层级图(图源谷歌),以下内容按照图中内容从左到右描述。

图中顶层应该还有一个接口Iterator<E>

                         Iterator<E>

                           ↑

· List

  - ArrayList、Vector、LinkedList的使用和适用场景

  - 三种集合之间的差异

· Queue

· Set

  - HashSet、LinkedHashSet、TreeSet的使用和适用场景

  - 三种集合之间的差异

一、 List

List继承自Collection接口

猜你喜欢

转载自www.cnblogs.com/tubybassoon/p/9716203.html