I've searched SO and can find questions addressing similar subjects, but nothing for this specific question and language. After reading some Q&A and not finding the answer, I searched java, for-loop and continue and got zero results.
I've been asked this question in a university quiz:
If I have:
int n = 3;
for (int i = 1; i <= n; i++) {
System.out.print(" x ");
for (int j = 1; j <= n; j++) {
System.out.println(" x ");
continue;
//no content here
}
}
Without there being any content after the continue statement; how does this using continue
affect this loop? Does it cause a break in the second loop of does the loop continue to iterate?