FileDocCategorySizeDatePackage
DList5.javaAPI DocExample728Sat Sep 12 03:01:00 BST 1998None

DList5

public class DList5 extends Object
Splicing a DList into another.
see
com.objectspace.jgl.DList
version
3.0.0
author
ObjectSpace, Inc.

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

    DList dlist1 = new DList();
    dlist1.add( "apple" );
    dlist1.add( "banana" );
    DList dlist2 = new DList();
    dlist2.add( "lotus" );
    dlist2.add( "ferrari" );
    dlist2.add( "lamborghini" );
    System.out.println( "before: dlist1 = " + dlist1 + ", dlist2 = " + dlist2 );

    dlist1.splice( dlist1.begin(), dlist2 );
    System.out.println( "after: dlist1 = " + dlist1 + ", dlist2 = " + dlist2 );