From 4e856b7e865f76334ef35467ea2b75158c8e1143 Mon Sep 17 00:00:00 2001 From: AZZOUG Lydia <lydia.azzoug@etu.univ-amu.fr> Date: Sun, 18 Oct 2020 21:36:02 +0200 Subject: [PATCH] Replace GridIterator.java --- GridIterator.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/GridIterator.java b/GridIterator.java index 19fc9e0..36504d2 100644 --- a/GridIterator.java +++ b/GridIterator.java @@ -1,6 +1,6 @@ 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() { -- GitLab