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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -