¿¹Á¦

public class ClassA implements Iterator{
public Object next() {

//...

}
public boolean hasNext() {

next();
//...
}
public void remove() {

//...
}

¼Ö·ç¼Ç ¸Þ¼Òµå È£Ãâ next()ÀÇ »ç¿ëÀ» Àç°ËÅäÇϽʽÿÀ.