CS202 Java-140
Flag-controlled loops
l
Use
meaningful name for the flag
l
Initialize
flag (to true or false)
l
Test
the flag in the loop test
expression
l
Change
the value of the flag in loop
body when the appropriate condition
occurs