0
Someone please help with the continue statement in Java, I don't quite understand it. Is it only applicable within for loops?
2 Respostas
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
0
Thank you