MCPcopy Create free account
hub / github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice / print2D

Method print2D

Leetcode/Java/SetZeroes.java:48–58  ·  view source on GitHub ↗
(int mat[][])

Source from the content-addressed store, hash-verified

46
47 // to print out the matrix
48 public static void print2D(int mat[][]) {
49 // Loop through all rows
50 for (int i = 0; i < mat.length; i++){
51 // Loop through all elements of current row
52 for (int j = 0; j < mat[i].length; j++){
53 System.out.print(mat[i][j] + " ");
54 }
55 System.out.println();
56 }
57
58 }
59}

Callers 1

mainMethod · 0.95

Calls 1

printMethod · 0.45

Tested by

no test coverage detected