dimanche 13 décembre 2015

If loop which is only executed if it checks the first item in a list?

Im looking for a way with an if condition but this condition should only be executed if it looks for the first item in a sorted List.

at the momoent I got it with: int i = 0; if(i==0){i++};

But is there a way something like if(ListName.getIndex[0]) or something like that?

Thanks

Aucun commentaire:

Enregistrer un commentaire