lundi 22 mai 2017

Java - How to complete this if statement?

while(true) {
    a=0;
    b=0;

    if(condition){
       a++;
    }else{
       b++;
    }

}

I have this code and I don't know how to complete it. I want it to leave the loop after a and b reach some amount. Please help.

Aucun commentaire:

Enregistrer un commentaire