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 );