int[][] arr = new int[10][80];
System.out.println("arr.length: " + arr.length);
System.out.println("arr[0].length: " + arr[0].length);
=>
arr.length: 10
arr[0].length: 80
즉, arr는 10개의 방이 있고 각각의 방에 대해서 80개의 방이 있다는 의미
'Papers > programming' 카테고리의 다른 글
constructor & destructor calling in inheritance (0) | 2013.11.19 |
---|---|
What is the difference between singleton and static class? (0) | 2013.07.16 |
union vs. struct (0) | 2010.03.31 |
friend class (0) | 2010.02.25 |
pthread example (0) | 2009.11.19 |