static void zeroout(int[][] A) { for(int i = 0; i < A.length; i++) { for(int j = 0; j < A[0].length; j++) { A[i][j] = 0; } } }