FileDocCategorySizeDatePackage
Vector1.javaAPI DocExample739Sat Sep 12 03:01:00 BST 1998None

Vector1

public class Vector1 extends Object
Sorting a JDK Vector.
see
java.util.Vector
version
3.0.0
author
ObjectSpace, Inc.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    Vector vector = new Vector();
    vector.addElement( "dog" );
    vector.addElement( "ape" );
    vector.addElement( "bat" );
    System.out.println( "unsorted = " + vector );
    Sorting.sort( VectorIterator.begin( vector ), VectorIterator.end( vector ), new LessString() );
    System.out.println( "sorted = " + vector );