OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [Array_1.java] - Blame information for rev 781

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.