Java基础之集合

list为单值集合,且为有序。

set为单值集合,为无序。且set中的值是唯一的。

list分为ArrayList和LinkList

map分为hashmap和treemap。hashmap中的key值是唯一的,将hashmap转换为单值集合时,用set接收。

posted @ 2020-12-27 22:51  Double晨  阅读(70)  评论(0编辑  收藏  举报