Showing posts with label IllegalArgumentException exeption. Show all posts
Showing posts with label IllegalArgumentException exeption. Show all posts

Saturday, 17 September 2011

IllegalArgumentException exeption


public class SetValues
{
    public static void main(String[] args)
    {
        try
        {
            System.out.println("Value : " + Integer.parseInt("4545"));
            System.out.println("Value : " + Integer.parseInt("60,40"));
        }
        catch(IllegalArgumentException exeption)
        {
            System.out.println("Exception : " + exeption);
        }
    }
}