/* An instance of this utility class represents a location within a ** two-dimensional grid, such as a matrix. Its instances are immutable. ** ** Author: R. McCloskey ** Date: April 2022 */ public class GridLocation { public final int ROW; public final int COL; public GridLocation(int r, int c) { ROW = r; COL = c; } public String toString() { return "(" + ROW + ',' + COL + ')'; } }