package sudoku; import java.util.ArrayList; import java.util.List; public class Block { private final List cells; public Block(List cells) { this.cells = cells; } public Block() { this.cells = new ArrayList<>(); } public List getCells() { return cells; } void addCell(Cell newCell) { this.cells.add(newCell); } }