Skip to content

Commit 3b456d5

Browse files
Common/src/utils/CommonUtils.java
1 parent a1a4445 commit 3b456d5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎Common/src/utils/CommonUtils.java

+13
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,19 @@ public static void printMatrix(int[][] matrix) {
144144
}
145145
System.out.println("----------------------------------------------------");
146146
}
147+
148+
public static void printMatrixGeneric(boolean[][] matrix) {
149+
150+
System.out.println("Matrix is: ");
151+
for(boolean[] row : matrix){
152+
for(boolean t : row){
153+
System.out.print(t + "\t");
154+
}
155+
System.out.println();
156+
}
157+
System.out.println("----------------------------------------------------");
158+
159+
}
147160

148161
public static void print(List<String> list) {
149162
System.out.println("----------------------------------------------------");

0 commit comments

Comments
 (0)