Java Reference
In-Depth Information
to what if does the last else associate?
4 . Show the for statement for a loop that counts from 1000 to 0 by -2.
5 . Is the following fragment valid?
6 . Explain what break does. Be sure to explain both of its forms.
7 . In the following fragment, after the break statement executes, what is displayed?
8 . What does the following fragment print?
9 . The iteration expression in a for loop need not always alter the loop control variable
by a fixed amount. Instead, the loop control variable can change in any arbitrary way.
Search WWH ::




Custom Search