home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BUG 15
/
BUGCD1998_06.ISO
/
aplic
/
jbuilder
/
jsamples.z
/
Functions4.java
< prev
next >
Wrap
Text File
|
1997-07-30
|
493b
|
16 lines
// Copyright(c) 1996,1997 ObjectSpace, Inc.
import COM.objectspace.jgl.*;
public class Functions4
{
public static void main( String[] args )
{
long array[] = { 3, 1, 5, -2, 7, 9 };
LongArray longArray = new LongArray( array );
BinaryPredicate comparator = new LessNumber( new Long( 0 ).getClass() );
System.out.println( "unsorted = " + longArray );
Sorting.sort( longArray, comparator );
System.out.println( "sorted = " + longArray );
}
}