home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Extras / OSpace / jgl.exe / jgl_2_0 / examples / Container9.java < prev    next >
Encoding:
Java Source  |  1997-03-14  |  356 b   |  18 lines

  1. // Copyright(c) 1996,1997 ObjectSpace, Inc.
  2. import COM.objectspace.jgl.*;
  3.  
  4. public class Container9
  5.   {
  6.   public static void main( String[] args )
  7.     {
  8.     try
  9.       {
  10.       Array array = new Array( -2 );
  11.       }
  12.     catch ( IllegalArgumentException exception )
  13.       {
  14.       System.out.println( "Caught " + exception );
  15.       }
  16.     }
  17.   }
  18.