import java.io.*;
public class TryClose2
{

  public static void main (String [] args)
  {
       PrintWriter printInt;
		 
		 printInt = null; 
       
		 try
		 {
		       printInt = new PrintWriter ("a.txt");
		 		 printInt.close ();
	    }
	 catch (FileNotFoundException fnfe)
		 {
		 		 System.out.println (" fnfe worked ");
		 }
 		 		 
   /*	 catch (IOException ioe)
		 {
		       System.out.println (" ioe worked ");
		 }
	*/	 
  
  }    
 }