Java集合之Collection接口与Map接口

Java集合主要包含collection和map两个接口。

  collection中的元素是一个value值,collection包含set、list、queue。

    (1)list:list接口包含ArrayList,Vector,LinkedList。

    (2)set包含HashSet,TreeSet,EnumSet。

    (3)Queueu包含LinkedList,PriorityQueue

  map中的元素是key:value的形式,map包含HashMap,HashTable,TreeMap,WeakHashMap,IdentityHashMap,EnumMap

java 集合关系图如下

 

猜你喜欢

转载自www.cnblogs.com/ywblogs/p/11950101.html