/*
   An example of an number format exception.
*/
import javax.swing.JOptionPane;

public class ANumberFormatException
{

   public static void main( String args[] )
   {
      String input = JOptionPane.showInputDialog("Try entering a non-integer");
      int x = Integer.parseInt( input );
      System.out.println("You entered the number " + x);
      System.exit(0);
   }//main

}//ANumberFormatException