home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BUG 15
/
BUGCD1998_06.ISO
/
aplic
/
jbuilder
/
jsamples.z
/
Overview5.java
< prev
next >
Wrap
Text File
|
1997-07-30
|
656b
|
20 lines
// Copyright(c) 1996,1997 ObjectSpace, Inc.
import COM.objectspace.jgl.*;
import java.util.Vector;
public class Overview5
{
public static void main( String[] args )
{
Vector vector = new Vector(); // JDK Vector.
vector.addElement( new Integer( 3 ) );
vector.addElement( new Integer( -1 ) );
vector.addElement( new Integer( 2 ) );
System.out.println( "Unsorted java.util.Vector = " + vector );
// A VectorArray makes a JDK vector look like a JGL container.
VectorArray vectorArray = new VectorArray( vector );
Sorting.sort( vectorArray );
System.out.println( "Sorted = " + vector );
}
}