Initial revision
From-SVN: r26263
This commit is contained in:
parent
140fa895c6
commit
ee9dd3721b
370 changed files with 173494 additions and 0 deletions
18
libjava/testsuite/libjava.lang/Array_1.java
Normal file
18
libjava/testsuite/libjava.lang/Array_1.java
Normal file
|
@ -0,0 +1,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());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue