1int i = 0;
2while (i < 10) {
3 if (i == 4) {
4 i++; //why do I need this line ?
5 continue;
6 }
7 System.out.println(i);
8 i++;
9}
1 int number = 4;
2 int finalnum = 20;
3 while(number <= finalnum){
4 number++;
5 if(number %2 != 0){//Each odd number restarts the loop
6 continue;
7 }
8 System.out.println("Even Number!: "+ number);
9 }
10 }//EOM