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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -