Hi stackers,
System.out.print("Enter your first name: ");
firstName = keyboard.nextLine();
if(firstName!="Mike"&&firstName!="mike"&&firstName!="Diane"&&firstName!="diane")
{
System.out.println("derp");
}
else
discount=true;
however, this is the result:
Enter your first name: diane
derp
if anyone can tell me what I'm doing wrong that would be great thank you very much!