+ 2

Help me with java code please

Please help me, I dont know why my code isnt running. It says wrong password when I try to type dustin as the password along with putting 40 hours and 10 an hour https://code.sololearn.com/c9Co9AKMQCSO/?ref=app

30th Dec 2018, 4:36 AM
Dustin James Locey
Dustin James Locey - avatar
3 Answers
+ 8
Change if(pass == password) to if(pass.equals(password)) https://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java
30th Dec 2018, 5:14 AM
Anna
Anna - avatar
+ 1
Sorry, i changed it
30th Dec 2018, 5:01 AM
Dustin James Locey
Dustin James Locey - avatar
0
Please don't have a foul language output, thanks
30th Dec 2018, 4:42 AM
Gordon
Gordon - avatar