home *** CD-ROM | disk | FTP | other *** search
/ BUG 15 / BUGCD1998_06.ISO / aplic / jbuilder / jsamples.z / Container10.java < prev    next >
Text File  |  1997-07-30  |  563b  |  18 lines

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