Skip to content

Instantly share code, notes, and snippets.

@JohnItoo
Last active October 20, 2019 12:52
Show Gist options
  • Save JohnItoo/c2a38207609a310b0a8ad8afc87f0c4f to your computer and use it in GitHub Desktop.
Save JohnItoo/c2a38207609a310b0a8ad8afc87f0c4f to your computer and use it in GitHub Desktop.
ReadElements
public static void main(String[] args) {
String[][] grid = {{"A", "B", "C"},
{"D", "E", "F"},
{"G", "H", "I"}};
for(int row = 0; row < 3; row++) {
System.out.println(' ');
for(int column = 0; column < 3; column++) {
System.out.print(grid[row][column] + " ");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment