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是一个接口

浙公网安备 33010602011771号