samedi 29 octobre 2016

.matches() does not return expected java

System.out.println("tag " + status + " - " + status.matches("Not yet synchronized"));

I have this and it returns

I/System.out: tag Not yet synchronized - false

Meaning status value is Not yet synchronized but the condition

status.matches("Not yet synchronized")) return false wherein I expect it should return true.

Why does this happened.

Aucun commentaire:

Enregistrer un commentaire