FileDocCategorySizeDatePackage
Algorithms2.javaAPI DocExample946Sat Sep 12 03:01:00 BST 1998None

Algorithms2

public class Algorithms2 extends Object
Copying provides algorithms for adding contents of one container to another.
see
com.objectspace.jgl.algorithms.Copying
version
3.0.0
author
ObjectSpace, Inc.

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

    int ints[] = { 2, 6, 3, 7 };
    Vector vector = new Vector();
    vector.addElement( new Integer( 1 ) );
    vector.addElement( new Integer( 4 ) );

    // Create container adapters.
    IntArray intArray = new IntArray( ints );
    VectorArray vectorArray = new VectorArray( vector );

    System.out.println( "vector before copying = " + vector );
    Copying.copy( intArray, vectorArray );
    System.out.println( "vector after copying = " + vector );