SyntaxFix
Write A Post
Hire A Developer
Questions
Two-liner with new line:
for(int[] x: matrix) System.out.println(Arrays.toString(x));
One liner without new line:
System.out.println(Arrays.deepToString(matrix));