Skip to content

Instantly share code, notes, and snippets.

@xodhx4
Last active February 18, 2020 13:36
Show Gist options
  • Save xodhx4/a94f8d1614c99e8635bac8df46438cd4 to your computer and use it in GitHub Desktop.
Save xodhx4/a94f8d1614c99e8635bac8df46438cd4 to your computer and use it in GitHub Desktop.
[이차원 배열 생성 및 initialize] 자바에서 이차원 배열을 생성하고 새로운 값을 할당한다 #array
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