home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BUG 15
/
BUGCD1998_06.ISO
/
aplic
/
jbuilder
/
jsamples.z
/
Container10.java
< prev
next >
Wrap
Text File
|
1997-07-30
|
563b
|
18 lines
// Copyright(c) 1996,1997 ObjectSpace, Inc.
import COM.objectspace.jgl.*;
public class Container10
{
public static void main( String[] args )
{
int ints[] = { 3, -1, 2, 0, -6 };
IntArray intArray = new IntArray( ints ); // Construct adapter class.
System.out.println( "unsorted native int array = " + intArray );
Sorting.sort( intArray ); // Sort native array.
System.out.print( "sorted = " );
for ( int i = 0; i < ints.length; i++ )
System.out.print( ints[ i ] + " " );
System.out.println();
}
}