View Single Post
  #1 (permalink)  
Old 08-04-2007, 07:35 PM
oregon oregon is offline
Member
 
Join Date: Jul 2007
Posts: 41
oregon is on a distinguished road
problems with JOptionPane
I'm using this command line and it works fine:
Code:
int age=Integer.parseInt(JOptionPane.showInputDialog("Enter your age"));
but when i try with strings, it doesn't work
Code:
String Name=String.parseString(JOptionPane.showInputDialog("Enter your name"));
why?
Reply With Quote
Sponsored Links