home *** CD-ROM | disk | FTP | other *** search
/ BUG 15 / BUGCD1998_06.ISO / aplic / jbuilder / jsamples.z / SList7.java < prev    next >
Text File  |  1997-07-30  |  581b  |  30 lines

  1. // Copyright(c) 1996,1997 ObjectSpace, Inc.
  2.  
  3. import COM.objectspace.jgl.*;
  4.  
  5. /**
  6.  * Removing.
  7.  *
  8.  * @see COM.objectspace.jgl.SList
  9.  * @version 2.0.2
  10.  * @author ObjectSpace, Inc.
  11.  */
  12.  
  13. public class SList7
  14.   {
  15.   public static void main( String[] args )
  16.     {
  17.     SList list = new SList();
  18.     list.add( "x" );
  19.     list.add( "l" );
  20.     list.add( "x" );
  21.     list.add( "g" );
  22.     list.add( "s" );
  23.     list.add( "s" );
  24.     System.out.println( "list = " + list );
  25.  
  26.     list.remove( "x" );
  27.     System.out.println( "After list.remove( x ) = " + list );
  28.     }
  29.   }
  30.