public class MagicSquare2 { public static void main (String[] argv) { // Some test cases. int[][] square = { {8, 1, 6}, {3, 5, 7}, {4, 9, 2} }; print (square); } static void print (int[][] A) { System.out.println ("Square of size " + A.length + ":"); for (int i=0; i