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);
        }
    }
}

No comments:

Post a Comment

Note: only a member of this blog may post a comment.