The Grid

The grid must be square, and it must have 10 rows and 10 columns. However, the size of the grid must be specified on one line of your program so that a programmer could change the grid size by changing that one line. Note that since your program won't change the size of the grid, the variable that contains this value should be declared as final. You must use a two (or higher) dimensional array to represent the grid.

As an example, the grid shown in Figure 1 is square with 6 rows and 6 columns.