The enhanced for loop asumes that, barring an early exit from the loop, you'll always loop throught every element of the array. The following discussions of break and continue appy to both the basic and enhanced for loops.
i cant understand this. any one please explain. thanks in advance
to add to Manfred's explaination... what the line also means is that, the "enhanced for loop" and the "basic for loop", both will continue to work the way mentioned above unless they encounter any of the System.exit(0); or break; or continue; statements.
_ ______________________________ _ <br />I'm using jdk1.5.0_12
The City calls upon her steadfast protectors. Now for a tiny ad: