2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / testsuite / libjava.lang / Array_1.java
blob1fcf04eeb4d6e35c5b96af7007da248bbbad97fc
1 // Test of array stuff. Technically this probably isn't in java.lang.
3 public class Array_1
5 public static void main (String[] args)
7 int x[][] = { { 1, 2}, null };
9 System.out.println(Cloneable.class.isInstance(x));
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]);
16 System.out.println(x.getClass().getSuperclass());