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
String Name = JOptionPane.showInputDialog("Enter your name");