G19990303_02.java 406 Bytes
Newer Older
Tom Tromey committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
public class G19990303_02
{
  public static void main (String[] args)
  {
    int i = -1;
    try
      {
	System.out.println ("Pass 1");
	int[][][] arrayInt = new int[i][1][1];
	int ii = arrayInt[i - 1][0][0];
	System.out.println ("Pass 2");
      }
    catch (NegativeArraySizeException e)
      {
	System.out.println ("Pass NegativeArraySizeException");
      }
    System.out.println ("Pass 3");
  }
}