OSDN Git Service

PR java/16789:
[pf3gnuchains/gcc-fork.git] / libjava / testsuite / libjava.lang / Array_1.java
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 }