December 2001
Intermediate to advanced
1136 pages
24h 12m
English

Statements are the way we get things done in a program. Statements live in methods and in blocks. Any statement may be prefixed by a label, as shown here:
months: for(int m = 1; m <= 12; m++) { ... The general syntax for a statement is this:
optIdentifier: statement
Java doesn’t have a goto statement. If a label appears, it is either just empty documentation (rare—use a comment instead), or it is used ...
Read now
Unlock full access