Created
February 16, 2020 15:46
-
-
Save bkyrlach/abe49f6e85720f99d36227e8e7e237e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| char[][] board = new char[3][3]; | |
| // for(int i = 0; i < board.length; i++) { | |
| // board[i] = new int[3]; | |
| // } | |
| for(int i = 0; i < board.length; i++) { | |
| char[] row = board[i]; | |
| for(int j = 0; j < row.length; j++) { | |
| row[j] = 'a' + 3; | |
| } | |
| } | |
| for(int i = 0; i < board.length; i++) { | |
| char[] row = board[i]; | |
| for(int j = 0; j < row.length; j++) { | |
| System.out.print(row[j]); | |
| } | |
| System.out.println(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment