summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/Array_1.java
blob: 1fcf04eeb4d6e35c5b96af7007da248bbbad97fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Test of array stuff.  Technically this probably isn't in java.lang.

public class Array_1
{
  public static void main (String[] args)
  {
    int x[][] = { { 1, 2}, null };

    System.out.println(Cloneable.class.isInstance(x));

    // This example is from the Java Spec book.
    int y[][] = (int[][]) x.clone();
    System.out.println(x == y);
    System.out.println(x[0] == y[0] && x[1] == y[1]);

    System.out.println(x.getClass().getSuperclass());
  }
}