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:
465 bytes
|
Line | |
---|
1 | // Test of array stuff. Technically this probably isn't in java.lang.
|
---|
2 |
|
---|
3 | public class Array_1
|
---|
4 | {
|
---|
5 | public static void main (String[] args)
|
---|
6 | {
|
---|
7 | int x[][] = { { 1, 2}, null };
|
---|
8 |
|
---|
9 | System.out.println(Cloneable.class.isInstance(x));
|
---|
10 |
|
---|
11 | // This example is from the Java Spec book.
|
---|
12 | int y[][] = (int[][]) x.clone();
|
---|
13 | System.out.println(x == y);
|
---|
14 | System.out.println(x[0] == y[0] && x[1] == y[1]);
|
---|
15 |
|
---|
16 | System.out.println(x.getClass().getSuperclass());
|
---|
17 | }
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.