I designed a class called Row. This class has the following variable
I would like to write an iterator method which goes like this
But I do not know how to go about doing this.Can someone pls help me, I do not know where to start.
Code:
private String country,city; private String connections[]; private boolean sea_link; private int cumul,section;
Code:
public Iterator<Row> iterator(){
return iterator;
}
Comment