Question: a) Write a method public static boolean isRowMagic(int[][] a) that checks if the array is row-magic (this means that every row has the same row
a) Write a method
public static boolean isRowMagic(int[][] a)
that checks if the array is row-magic (this means that every row has the same row sum).
b) Write a method
public static boolean isColumnMagic(int[][] a)
that checks if the array is column-magic (this means that every column has the same column sum).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
