lundi 28 octobre 2019

Comparing Strings in Java (Android) [duplicate]

This question already has an answer here:

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