dimanche 13 décembre 2015

Password If-Check error [duplicate]

This question already has an answer here:

Help! I need to check, if first text equals second!

pass = readPassFromFile()
if(passTxt.getText().toString()==pass)  
{
    success()
} else {
    fail()
}

I entered right password into EditText. Variable pass is a line from file. I used toast to see passwords. Result ('-' is a separator, '[]' is start/end): [Qwerty-Qwerty].

Aucun commentaire:

Enregistrer un commentaire