That's true, you have to use "parseInt" static method, for example:

        String str = JOptionPane.showInputDialog("Please enter a int
value");
        int a = Integer.parseInt(str);

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to