mercredi 14 juin 2017

How to evaluate checkbox.isChecked() on a CheckBox Array?

I'm trying to evaluate if a checkbox is checked on a checkbox array, if one of them is not checked I want to assing 3 to n, but it only assings 3 to n when all of them are checked, any ideas?, Thank You.

for (int i = 0; i < checkBoxes.length; i++){
    if(!checkBoxes[i].isChecked()){
        n = 3;
    }
}
return n;




Aucun commentaire:

Enregistrer un commentaire