you can only use a labeled continue with loops. If you have nested loops and want to skip an iteration of an outer loop from within an inner loop you can't simply use continue. That would only skip an iteration of the inner loop itself. Therefore you can mark the outer loop with a label and this way skip an iteration of the outer loop by using a labeled continue in the inner loop.
Joined: Aug 06, 2007
Can you please correct my code and let be know how should it be please...
Here is the code that compiles. You have to put the label before the (for) loop to make the program syntactically correct. Then the code will compile but of course that doesn't necessarily mean that it works semantically as intended by the author who used the label in a wrong way
[ May 10, 2008: Message edited by: Marco Ehrentreich ]