+ 1
Can anyone please explain me the Loop control condition: "Continue" ?! Help me!
here is the code: public class Program { public static void main(String[] args) { for(int x=10; x<=40; x=x+10) { if(x == 30) { continue; } System.out.println(x); } } }
2 Respuestas
+ 22
it just skips a turn of the loop.... (the case where x == 30)
this will print 10 20 40
+ 3
Ya @valentinhacker is right...