Array array = new Array();
try
{
array.popBack();
}
catch ( InvalidOperationException exception )
{
System.out.println( "Caught " + exception );
}
array.add( "ape" );
array.add( "bat" );
array.add( "cat" );
try
{
array.at( 5 );
}
catch ( IndexOutOfBoundsException exception )
{
System.out.println( "Caught " + exception );
}