Hi everybody.
I have a class Sudoku. And puzzle stores 2D array of type Cell.
public class Sudoku implements Iterable<Cell []>
{
private Cell [] [] puzzle;
What I want to do is to iterate through the puzzle in different class (SudokuValidator):
public class SudokuValidator
{
private Sudoku puzzle;
how can I do this?
So I would like to get something like
puzzle[row][col]