Java Reference
In-Depth Information
The switch and case statements are similar to COBOL's EVALUATE verb.
Java's for loop is similar to COBOL's PERFORM UNTIL construct. The con-
tinue statement causes the current iteration of this loop to terminate and the
next iteration to start. The break statement causes the current code block to be
exited immediately.
Finally, you constructed a labeled for loop. After the loop was performed only
two times, you exited the labeled loop abruptly, causing the statement after the
loop to be executed. In fact, you exited the outer loop from inside an inner loop.
Search WWH ::




Custom Search