Guest User

Untitled

a guest
Jun 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public void printMatrix(int[][] matrix) {
  2. for (int row = 0; row < matrix.length; row++) {
  3. for (int col = 0; col < matrix[row].length; col++) {
  4. System.out.printf("%4d", matrix[row][col]);
  5. }
  6. System.out.println();
  7. }
  8. }
Add Comment
Please, Sign In to add comment