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;
    }
  }
@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));
  }