FileDocCategorySizeDatePackage
SList5.javaAPI DocExample710Sat Sep 12 03:01:00 BST 1998None

SList5

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

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

    SList list1 = new SList();
    list1.add( "apple" );
    list1.add( "banana" );
    SList list2 = new SList();
    list2.add( "lotus" );
    list2.add( "ferrari" );
    list2.add( "lamborghini" );
    System.out.println( "before: list1 = " + list1 + ", list2 = " + list2 );

    list1.splice( list1.begin(), list2 );
    System.out.println( "after: list1 = " + list1 + ", list2 = " + list2 );