62,614
社区成员
发帖
与我相关
我的任务
分享
public Iterator<E> iterator() {
return new Itr();
}
//内部类
private class Itr implements Iterator<E> {
public boolean hasNext(){
//……
}
public E next() {
//……
}
public void remove() {
//……
}
//other method……
}