View Single Post
  #2 (permalink)  
Old 08-04-2007, 10:29 PM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,124
hardwired is on a distinguished road
The String class does not have a parseString method. You can look up fields and methods available for any class in the javadocs.
Overview (Java 2 Platform SE 5.0). Find the class in the left lower frame, click the link and its api loads into the main frame. The Method Summary lists all the methods for the class. Sections below show methods of superclasses available through inheritance.
The showInputDialog method you are using returns a String so you only need
Code:
String Name = JOptionPane.showInputDialog("Enter your name");
Reply With Quote