0

I can't make my string entireFileText test to see if it is the same as Email. I think I'm missing something...

if(entireFileText == Email) { JOptionPane.showMessageDialog(frame, "Welcome back!", "Confirmation", JOptionPane.INFORMATION_MESSAGE); }else{ System.out.println("oops"); }

1 Answers1

1
entireFileText.equals(Email)  

check contents instead of string references.

Mohan Raj
  • 1,104
  • 9
  • 17