📜  java代码示例中的continue关键字有什么作用

📅  最后修改于: 2022-03-11 14:52:37.688000             🧑  作者: Mango

代码示例3
int number = 4;
        int finalnum = 20;
        while(number <= finalnum){
            number++;
            if(number %2 != 0){//Each odd number restarts the loop
              continue;
            }
            System.out.println("Even Number!: "+ number);
        }
    }//EOM