vendredi 5 juin 2015

Java, repeat If statement if the condition was false

Simplified, I basically have an if statement like this:

if(A[random]==1)
    A[random]=0;
else 
    continue;

Now I know the 'continue' is for loop statements and this won't work, but I wanted something after the else that if indeed the else(basicaly the condition was false) was activated it repeated the first if(A[random]==1) statement.

Aucun commentaire:

Enregistrer un commentaire