Collection體系

Collection Collection是Java所有集合類的父類。 常見的有:List、Set、Map、Tree。 常用方法:  retailAll(Collection t); 取兩個集合的交集。  contains(T t); 是否包含某個值。 對應的工具類:Collections  常用方法:   1. csort(Collection t); 對實現了Comparable接口的集合元素
相關文章
相關標籤/搜索