home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BUG 15
/
BUGCD1998_06.ISO
/
aplic
/
jbuilder
/
jsamples.z
/
SList4.java
< prev
next >
Wrap
Text File
|
1997-07-30
|
730b
|
40 lines
// Copyright(c) 1996,1997 ObjectSpace, Inc.
import COM.objectspace.jgl.*;
/**
* Exceptions.
*
* @see COM.objectspace.jgl.SList
* @version 2.0.2
* @author ObjectSpace, Inc.
*/
public class SList4
{
public static void main( String[] args )
{
SList list = new SList();
try
{
list.popBack();
}
catch ( InvalidOperationException exception )
{
System.out.println( "Caught " + exception );
}
list.add( "ape" );
list.add( "bat" );
list.add( "cat" );
try
{
list.at( 5 );
}
catch ( IndexOutOfBoundsException exception )
{
System.out.println( "Caught " + exception );
}
}
}