I'm building a log in system for a java program which will be working out employees wages for certain stores. Before I go any further I am fully aware this isn't the safest way to make a log in so please don't try explaining because I'm aware. My code so far is below
public class project15
{
public static void main(String[] args);
{
String store = store501;
String stroePin = 1468dty;
String personalPin = abc123;
String inputStore;
String inputPin;
String inputPersonal
inputStore = JOptionPane.showInputDialog("please enter the store number");
inputPin = JOptionPane.showInputDialog("please enter the stores unique ID");
inputPersonal = JOptionPane.showInputDialog("please enter your persoanl ID");
if (inputStore==store && inputPin==stroePin && inputPersonal==personalPin){
System.out.println("correct information");
}
else
{
System.out.println("incorrect information");
}
}
}
I get an error on the first three String values saying, for example, "store501 can not be resolved to a variable. " Everything else seems to be working okay. Can anyone spot where I've gone wrong and please explain as I am eager to learn from any mistakes I may have made. Thanks in advance and I appreciate any feedback.