### Question:
ArrayUtilityMethods { public static boolean matricesSame(int[][] m1, int[][] m2) { if (m1.length != m2.length) { return false; } else { var answer = false; for (var i = 0; i < m1.length; i++) { if (arraysSame(m1[i], m2[i])) { answer = true; } else { answer = false; break; } } return answer; } }  static boolean arraysSame(int[] a1, int[] a2); static boolean matricesSame(int[][] m1, int[][] m2); static int[][] createRandomIntMatrix(int rows, int columns); static void printMatrix(int[][] matrix);  }### Answer:
@Test void matricesSameTest() { var matrix1 = new int[][]{{1, 4, 2, 6}, {5, 8, 6, 7}}; var matrix2 = new int[][]{{1, 4, 2, 6}, {5, 8, 6, 7}}; assertTrue(ArrayUtilityMethods.matricesSame(matrix1, matrix2)); }