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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -