8000 add a util method · zhahui/fishercoder1534-Leetcode@e255227 · GitHub
[go: up one dir, main page]

Skip to content

Commit e255227

Browse files
fishercoder1534zhahui
authored andcommitted
add a util method
1 parent 722f746 commit e255227

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/com/fishercoder/common/utils/CommonUtils.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,4 +221,14 @@ public static void printArrayArray(int[][] arrayArrays) {
221221
}
222222
System.out.println();
223223
}
224+
225+
public static void print2DCharArray(char[][] arrayArrays) {
226+
for (char[] array : arrayArrays) {
227+
for (char i : array) {
228+
System.out.print(i + ", ");
229+
}
230+
System.out.println();
231+
}
232+
System.out.println();
233+
}
224234
}

0 commit comments

Comments
 (0)
0