This question already has an answer here:
- How do I compare strings in Java? 23 answers
My Java code on Android Studio :
itemClickListener = ((view, position) -> {
String status = order.get(position).getStatus();
Log.d(status,"sta");
if(status "Terisi"){
//work
} else {
//not work
}
});
I have checked status
on the logger and it shows:
D/Terisi: sta.
but it always going to else (not work).
Aucun commentaire:
Enregistrer un commentaire