(String[] args)
| 125 | } |
| 126 | |
| 127 | public static void main(String[] args) { |
| 128 | int nrows = 10; |
| 129 | int ncols = 15; |
| 130 | int[][] matrix1 = AssortedMethods.randomMatrix(nrows, ncols, 0, 100); |
| 131 | int[][] matrix2 = cloneMatrix(matrix1); |
| 132 | |
| 133 | AssortedMethods.printMatrix(matrix1); |
| 134 | |
| 135 | setZeros(matrix1); |
| 136 | setZeros2(matrix2); |
| 137 | |
| 138 | System.out.println(); |
| 139 | |
| 140 | AssortedMethods.printMatrix(matrix1); |
| 141 | System.out.println(); |
| 142 | AssortedMethods.printMatrix(matrix2); |
| 143 | |
| 144 | if (matricesAreEqual(matrix1, matrix2)) { |
| 145 | System.out.println("Equal"); |
| 146 | } else { |
| 147 | System.out.println("Not Equal"); |
| 148 | } |
| 149 | } |
| 150 | } |
nothing calls this directly
no test coverage detected