Write a method that takes a 2d array of ints and
an int row number ard returns the sum of all
the int values in that row.
Write a method that takes a 2d array of ints and
an int column number ard returns the sum of all
the int values in that column.
Write a method that takes a 2d array of ints and returns the
sum of all the individual int values.
Write a method that takes a 2d array of ints and
two ints representing possible row and column indexes into
the array. Return a boolean indicating whether the two ints
are valid indexes into the array. (Hint: this method may be useful when
writing some of the subsequent methods.)
Write a method that takes a 2d array of ints and two ints
representing a valid pair row, column indexes into the grid and returns
the sum of the int values in the immediately neighboring
cells. A cell in the middle of the board will have eight neighbors; on on
the edge or in a corner will have fewer.
Write a method that takes a 2d array of ints and returns the
sum of the int values in a checkerboard pattern, starting
with the int at the top left (i.e. in row 0, column 0).
Write a method that takes a 2d array of Strings and returns
a String consisting of all the String values in
the array, collected by moving through the grid in a zig zag pattern,
moving forward through the first row and backwards through the next, and
then forwards through the row after that, etc.