0
Why this though, ?!
I don't get it why is it printing not unlocked although the condition is true? https://code.sololearn.com/c50qJ2hz01U2/?ref=app
1 Answer
+ 6
Use equals() method for string comparisons... It compares content. While :
== compares references
if (actual_password.equals(password)){