Collection单列集合
List :有序可重复(如 ArrayList 、 LinkedList )
Set :无序不可重复(如 HashSet 、 TreeSet )
Queue :队列(先进先出,如 PriorityQueue )
Map(双列集合):存储键值对(key不可重复),如 HashMap 、 TreeMap 。
Collection单列集合
List :有序可重复(如 ArrayList 、 LinkedList )
Set :无序不可重复(如 HashSet 、 TreeSet )
Queue :队列(先进先出,如 PriorityQueue )
Map(双列集合):存储键值对(key不可重复),如 HashMap 、 TreeMap 。