home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
inprise
/
JSAMPLES.Z
/
Container7.java
< prev
next >
Wrap
Text File
|
1998-05-08
|
439b
|
21 lines
// Copyright(c) 1996,1997 ObjectSpace, Inc.
import com.objectspace.jgl.*;
public class Container7
{
public static void main( String[] args )
{
Array array = new Array();
array.add( "ape" );
array.add( "cat" );
try
{
Object object = array.at( 5 );
}
catch ( IndexOutOfBoundsException exception )
{
System.out.println( "Caught " + exception );
}
}
}