home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-07-30 | 581 b | 30 lines |
- // Copyright(c) 1996,1997 ObjectSpace, Inc.
-
- import COM.objectspace.jgl.*;
-
- /**
- * Removing.
- *
- * @see COM.objectspace.jgl.SList
- * @version 2.0.2
- * @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 );
- }
- }
-