I am not quite sure what i am doing wrong with this code.
I am trying to import the joptionpane and then convert the string into an int my error comes at
**start = inputValue.Integer.parseInt();**
JOptionPane pane = new JOptionPane();
String inputValue = JOptionPane.showInputDialog("Please input a value");
start = inputValue.Integer.parseInt();
matt b
140k66 gold badges287 silver badges352 bronze badges
2 Answers 2
Try this:
start = Integer.parseInt(inputValue);
answered Apr 12, 2011 at 0:43
Comments
I think you meant start = Integer.parseInt(inputValue);
answered Apr 12, 2011 at 0:44
Comments
lang-java