자바 초보부터 B형까지8 -2차원 배열 필수-
1. 2차원 배열 선언 정수형 2차원 배열은 new int[행 개수][열 개수];로 선언 가능하다 int[][] arr2d = new int[4][4]; 2차원 격자상 좌표가 (x,y)라고 한다면.. y행 x열에 대한 원소 접근은 arr2d[y][x];와 같이 접근할 수 있다. /* i/j 0 1 2 3 0 1 2 3 4 1 7 8 9 10 2 11 12 13 14 3 15 16 17 18 */ public class Main { public static void main(String[] args) { int[][] arr2d = new int[][]{ {1, 2, 3, 4}, {7, 8, 9, 10}, {11, 12, 13, 14}, {15, 16, 17, 18} }; System.out.println..