Last active
February 18, 2020 13:36
-
-
Save xodhx4/a94f8d1614c99e8635bac8df46438cd4 to your computer and use it in GitHub Desktop.
[이차원 배열 생성 및 initialize] 자바에서 이차원 배열을 생성하고 새로운 값을 할당한다 #array
This file contains 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
public static void readAll(InputStream inputStream) { | |
Scanner scanner = new Scanner(inputStream); | |
char[][] map = new char[N][]; | |
for (int i=0; i<N; i++) { | |
map[i] = scanner.nextLine().toCharArray(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment