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