Hi, I am currently doing a small project and at the moment I am stuck after putting in a code to "allow you in". My code is below and it seems to come up with error even if the the code that i put in is correct. Please help
Code:
if(Greenfoot.mouseClicked(null))
{
String inputstring1 = JOptionPane.showInputDialog("Insert Code");
if(inputstring1 == "Code")
{
System.out.println("Well Done");
}
else
{
System.out.println("Error");
}
}
