+ 1
Java for loop question
How come when you enter user as the username, it doesn't end the for loop in savedUsers() before it prints out "testing" which is the last username in its array? https://code.sololearn.com/cxWjSJEoJx8N/?ref=app
2 Answers
+ 1
Try (z.equals(users[l])) instead of (z == users[l] )
+ 1
Oh...duh... == is for int, .equals is for strings correct?



