Skip to content

Instantly share code, notes, and snippets.

@Paul-Michaud
Created February 3, 2018 19:01
Show Gist options
  • Save Paul-Michaud/31a7199eb73f7b96f7c595fa6b861770 to your computer and use it in GitHub Desktop.
Save Paul-Michaud/31a7199eb73f7b96f7c595fa6b861770 to your computer and use it in GitHub Desktop.
public class Main {
public static void main(String[] args) {
int[][] a = new int[10][5];
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 5; j++) {
System.out.printf("%2d ", a[i][j]);
}
System.out.println();
}
}
}
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment