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

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

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

node.js - On Gitbash - Bower : ENOGIT git is not installed or not in the PATH -