collection 筆記

collection主要方法: boolean add(Object o)添加對象到集合 boolean remove(Object o)刪除指定的對象 int size()返回當前集合中元素的數量 boolean contains(Object o)查找集合中是否有指定的對象 boolean isEmpty()判斷集合是否爲空 Iterator iterator()返回一個迭代器 boolean
相關文章
相關標籤/搜索