/**
   This program demonstrates how the Integer.parseInt
   method throws an exception.
*/

public class ParseIntError
{
   public static void main(String[] args)
   {
       String str = "abc";
       int number;

       try
       {
          number = Integer.parseInt(str);
			 System.out.println("I am here");
       }
       catch (NumberFormatException e)
       { 
          System.out.println("Conversion error: " +
                             e.getMessage());
       }
   }
}