Skip to content
Snippets Groups Projects
Commit 4e856b7e authored by AZZOUG Lydia's avatar AZZOUG Lydia
Browse files

Replace GridIterator.java

parent bcd0d31c
No related branches found
No related tags found
No related merge requests found
import java.util.Iterator;
/**
/**
* {@link GridIterator} instances are used to iterate over the cells of a grid.
*/
public class GridIterator implements Iterator<Cell> {
......@@ -8,11 +8,12 @@ public class GridIterator implements Iterator<Cell> {
private int columnIndex;
private Grid grid;
GridIterator(Grid grid) {
this.rowIndex = 0;
this.columnIndex = 0;
this.grid = grid;
}
this.grid = grid; }
@Override
public boolean hasNext() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment