Hello! I'm new to the site and already have a question regarding
java.
The goal of this section of my assignment is to ask the user for a password. The password entered has to match the password I set in the code. If it is correct the next dialog box will pop up.
my password is set to:
String enterpwd = "";
String correctPassword = "Setpassword";
I am asked to use JOption, I completed as follows:
enterpwd = JOptionPane.showInputDialog(""............JOptionPane.QUESTION_MESSAGE);
then I use IF statements
if (enterpwd == correctPassword)
xyz = JOption .......();
I hope this is enough information. I am getting an error "java.lang.NumberFormatException: For input string: """
Help would greatly be appreciated. I will come back and give more detail if this is not enough (im currently at work, rushed this).