//An instance of this class represents a 2D grid of Squares // that are initially either OPEN or BLOCKED to from a Maze //The status of an OPEN Square may become SELECTED when the // the Square is selected for an escape path from the Maze // import java.util.Scanner; public class Grid { //Instance Variables private final int maxRow; //Highest index of any row private final int maxCol; //Highest index of any colums private Square[][] grid; //The 2D grid of Squares //Constructor //Parameter source is initialized to scan the input file public Grid(Scanner source) { this.maxRow = 0; this.maxCol = 0; } public String toString() { return ""; } //An enum type to represent the state of a square in a Grid public enum Square { OPEN(' '), BLOCKED('#'), SELECTED('+'), REJECTED('X'); private char symbol; private Square(char symbol) { this.symbol = symbol; } public char getSymbol() { return this.symbol; } } }