home *** CD-ROM | disk | FTP | other *** search
/ BUG 15 / BUGCD1998_06.ISO / aplic / jbuilder / jsamples.z / Overview6.java < prev    next >
Encoding:
Java Source  |  1997-07-30  |  517 b   |  18 lines

  1. // Copyright(c) 1996,1997 ObjectSpace, Inc.
  2. import COM.objectspace.jgl.*;
  3.  
  4. public class Overview6
  5.   {
  6.   public static void main( String[] args )
  7.     {
  8.     int ints[] = { 3, -1, 2 };
  9.     IntArray intArray = new IntArray( ints );
  10.     System.out.println( "Unsorted native int array = " + intArray );
  11.     Sorting.sort( intArray );
  12.     System.out.print( "Sorted native array = " );
  13.     for ( int i = 0; i < ints.length; i++ )
  14.       System.out.print( ints[ i ] + " " );
  15.     System.out.println();
  16.     }
  17.   }
  18.