Last change
on this file was 2, checked in by bird, 22 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
296 bytes
|
Line | |
---|
1 | // Test to make sure multidimensional arrays work.
|
---|
2 | // From Bryce McKinlay
|
---|
3 |
|
---|
4 | public class Array_2
|
---|
5 | {
|
---|
6 | static final int a = 10, b = 15;
|
---|
7 |
|
---|
8 | public static void main(String args[])
|
---|
9 | {
|
---|
10 | int[][] foo = new int [a][b];
|
---|
11 | System.out.println(foo.length);
|
---|
12 | System.out.println(foo[a-1].length);
|
---|
13 | }
|
---|
14 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.