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:
568 bytes
|
Line | |
---|
1 | // Class inner_array
|
---|
2 | // Generated on Fri Nov 19 13:19:47 PST 1999
|
---|
3 | //
|
---|
4 |
|
---|
5 | class inner_array {
|
---|
6 |
|
---|
7 | private int[] foo;
|
---|
8 |
|
---|
9 | class array_inner {
|
---|
10 | void test () {
|
---|
11 | int x = foo[2];
|
---|
12 | System.out.println ("x="+x);
|
---|
13 | foo [1] = 34;
|
---|
14 | foo [1]++;
|
---|
15 | }
|
---|
16 | }
|
---|
17 | void foo ()
|
---|
18 | {
|
---|
19 | foo = new int [3];
|
---|
20 | foo[2]=670;
|
---|
21 | array_inner inn = this.new array_inner ();
|
---|
22 | inn.test ();
|
---|
23 | System.out.println ("foo[1]="+foo[1]);
|
---|
24 | }
|
---|
25 | public static void main (String[] arg)
|
---|
26 | {
|
---|
27 | System.out.println ("Testing class `inner_array'...");
|
---|
28 | new inner_array().foo ();
|
---|
29 | }
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.