iterator(),lterator,Iterable的关系

iterator(),lterator,Iterable的关系
  ArrayList继承自AbstractList--implements List(接口)---extends Collection(接口)------ extends Iterable(接口)---方法:[返回值接口]Iterator<T> [方法]iterator();
  [返回值接口]Iterator<T>----boolean hasNext();--E next();--remove()方法
  
  1,ArrayList实现接口List
  2,List继承接口Collection
  3,Collection继承接口Iterable
  4,接口Iterator中有抽象方法hasNext();--E next();
  5,接口iterator的返回值Iterable是一个接口
posted @ 2022-04-14 17:02  爱豆技术部  阅读(41)  评论(0)    收藏  举报