Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int [][] matriu = {{23,45,11,2},{67,2},{1,2,3,4,5,6}};
- System.out.println("Aquests són els valors que conté la matriu: ");
- for (int i = 0; i < matriu.length; i++) { //i = posició fila
- System.out.println("\n\n\tEls valors que hi ha a la fila " + i + " són: ");
- for (int j = 0; j < matriu[i].length; j++) {
- System.out.println("\n\t\tEn la columna " + j + ": " + matriu[i][j]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement