Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void printMatrix(int[][] matrix) {
- for (int row = 0; row < matrix.length; row++) {
- for (int col = 0; col < matrix[row].length; col++) {
- System.out.printf("%4d", matrix[row][col]);
- }
- System.out.println();
- }
- }
Add Comment
Please, Sign In to add comment