0

Someone please help with the continue statement in Java, I don't quite understand it. Is it only applicable within for loops?

9th Sep 2017, 2:07 PM
Olawumi Qauzeem Yusuff
2 Respuestas
0
It basically skips the current iteration, ie if (num == 5) { Continue } Would basically skip whatever is supposed to happen during the loop as it hits 5, so if you're printing each number it would print 1 2 3 4 6 7 Etc
9th Sep 2017, 2:19 PM
Tom
Tom - avatar
0
Thank you
12th Sep 2017, 8:03 PM
Olawumi Qauzeem Yusuff