   import java.io.*;
   import java.util.*;
    public class ExamExceptions
   {
       public static void main (String  [ ] args)
      {
      
         int 	myNumber;
         try
         {
            myNumber = Integer.parseInt ("EasyQuestion");
         } 
             catch (NumberFormatException nfe)
            {
               System.out.println (" NumberFormatException caught ");
               System.out.println (" Not possible to parse 'easyQuestion' as an int ");
            }
      
      
         int [ ] myArray = {3,4,5};
      
         try
         {
            for (int i = 0;  i <= 3; i++)
            {
               System.out.println (myArray[i]);
            }
         }
             catch (ArrayIndexOutOfBoundsException  AIOOBE)
            {
               System.out.println (" ArrayIndexOutOfBoundsException ");
               System.out.println (" Array only has 3 elements, can't print 4th ");
            }
      
         int six, zero, answer;
         six = 6;
         zero = 0;
         try
         {
            answer = six/zero;
         } 
             catch (ArithmeticException ae)
            {
               System.out.println (" Can't divide by 0 ");		
            }		
      } // END main
   } // END class
		
