android - Can't seem to get my && operation running -
i have simple code here i'm trying create on android studio can't seem work out.
the code follow
if (username = "sharesharerocks" && password = "shareshare") { //... }
it's not && ,
you mistake comparing operator
change to
if(username == "sharesharerocks" && password == "shareshare"){ }
Comments
Post a Comment