集合的父子類關係

  一.Collection的父子類關係 1.Iterable(java集合的頂級接口之一)——實現此接口的類能夠使用新的for循環 2.Iterator(接口,遍歷器)ListIterator 方法:hasNext();next();remove(); 3.Collection(接口,繼承Iterable) 方法: add();addAll();remove();removeAll();cont
相關文章
相關標籤/搜索