1d list of grid squares get rows cols code example Example: 2d arrays | java int[][] arr = new int[row][column];