Collection集合

一、Collection接口 概述 是整個Java類集中保存單值的最大操作父接口,每次操作只能保存一個對象的數據。 定義 接口定義在java.util包中 格式:public interface Collection <泛型> extends Iterable <泛型> 常用方法 特別的,通常開發中不直接使用Collection接口,而是使用他的兩個子接口List和Set 二、子接口List 特點
相關文章
相關標籤/搜索