Příklad
public
class
ClassA
implements
Iterator{
public Object
next() {
//...
}
public boolean
hasNext() {
next();
//...
}
public void
remove() {
//...
}
Řešení
Znovu zvažte použití vyvolání metody next()