Having trouble with Java login from with mySQL
https://dl.dropbox.com/u/27086729/Java Help.PNG
As you guys can see in the image above, the first username provided through the MySQL server is in fact equal to the User Provided Username typed in the textbox, but for some reason, java still says they are not equal? Help me please!
Java MySQL issues. Please HELP!
https://dl.dropbox.com/u/27086729/Java Help.PNG
As you guys can see in the image above, the first username provided through the MySQL server is in fact equal to the User Provided Username typed in the textbox, but for some reason, java still says they are not equal? Help me please!
Re: Java MySQL issues. Please HELP!
Don't compare two Strings for equality with the == operator; use the String.equals( ... ) method instead.
kind regards,
Jos
ps. this reply should be nailed to the front door of this forum.
Re: Having trouble with Java login from with mySQL
Compare Strings and other objects by using the .equals(...) method. Not by ==.
db
Re: Having trouble with Java login from with mySQL
Moved from Networking.
db
Re: Having trouble with Java login from with mySQL
Also, go through the Forum Rules -- particularly the second paragraph. I've merged your two threads here. Please don't double post the same question in future.
db
Re: Having trouble with Java login from with mySQL