dimanche 23 février 2020

switching to first line of while loop in java

Sorry, I am new to Java! I have a question regarding using multiple if statements in a loop like a while. I will make clear my question through an example. if condition 1 is wrong, how can we switch to the while again( without processing other conditions)?

 public static void main(String[] args) {
                // TODO Auto-generated method stub

            while(){
            if(condition1){

            if(condition2){

            if(condition3){

                   }    

            }

Aucun commentaire:

Enregistrer un commentaire