サンプル
public
class
ClassA
implements
Iterator{
public Object
next() {
//...
}
public boolean
hasNext() {
next();
//...
}
public void
remove() {
//...
}
解決策
メソッド呼び出し next() の使用を再検討してください。