FileDocCategorySizeDatePackage
SList7.javaAPI DocExample579Sat Sep 12 03:01:00 BST 1998None

SList7.java

// Copyright(c) 1996,1997 ObjectSpace, Inc.
import com.objectspace.jgl.*;

/**
 * Removing.
 *
 * @see com.objectspace.jgl.SList
 * @version 3.0.0
 * @author ObjectSpace, Inc.
 */

public class SList7
  {
  public static void main( String[] args )
    {
    SList list = new SList();
    list.add( "x" );
    list.add( "l" );
    list.add( "x" );
    list.add( "g" );
    list.add( "s" );
    list.add( "s" );
    System.out.println( "list = " + list );

    list.remove( "x" );
    System.out.println( "After list.remove( x ) = " + list );
    }
  }