list和map,set的區別

結構特色 List 存儲單列數據的集合 存儲的數據有序,容許重複 Set 存儲單列數據的集合 無序,且不能重複 Map 存儲鍵和值的雙列數據的集合 無序,鍵不能重複,值能夠重複 實現類 List (LinkedList,ArrayList,Vector) Set (HashSet,LinkedHashSet) Map (HashMap,HashTable,LinkedHashMap) Linked
相關文章
相關標籤/搜索