Check out example codes for "java continue statement". It will help you in understanding the concepts better.
Code Example 1
for (int i = 0; i < 10; i++) {
if (i == 4) {
continue;
}
System.out.print(i);
}
//output: 012356789
//skips iteration i=4
Code Example 2
int i = 0;
while (i < 10) {
if (i == 4) {
i++; //why do I need this line ?
continue;
}
System.out.println(i);
i++;
}
Learn ReactJs, React Native from akashmittal.com