容器

容器可以用for-each遍历,并且会改变元素值

ArrayList

HashSet

这两个可以直接println因为有

public String toString()

HashMap<Key, Value> Key和Value都是容器类似字典 Key具有唯一性,同一个Key重复给Value会覆盖前面的Value

posted @ 2021-11-29 16:46  Inami  阅读(87)  评论(0)    收藏  举报