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] - Rev 778

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

// 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());
  }
}
 

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

powered by: WebSVN 2.1.0

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