集合學習筆記

集合存儲對象,遍歷集合取出對象。集合特性。 collection 接口。 Collection toArray() Object[] 返回對象數組 size() 對象集合 contains(Object o) 是否存在 clear() 清空 remove() 刪除第一個遇到的,返回bool值 存儲的方式不同, 迭代器Iterator hasNext Next 集合中不指定類型(不使用泛型),什麼都
相關文章
相關標籤/搜索