Skip to content

Instantly share code, notes, and snippets.

@uncoded-ro
Last active January 12, 2020 14:00
Show Gist options
  • Save uncoded-ro/379a72dd64c408879b035a8fd0509277 to your computer and use it in GitHub Desktop.
Save uncoded-ro/379a72dd64c408879b035a8fd0509277 to your computer and use it in GitHub Desktop.
class Matrice {
public static void main(String[] args) {
int[][] matrice = { { 12, 4, 23, 1 }, { 16, 8, 0, 21 }, { 1, 13, 2, 17 } };
for (int i = 0; i < matrice.length; i++) {
for (int j = 0; j < matrice[i].length; j++) {
System.out.print("matrice[" + i + "," + j + "]=" + matrice[i][j] + "\t");
}
System.out.print("\n");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment