Java Reference
In-Depth Information
Sequence
Selection
if statement
(single selection)
switch statement with break s
(multiple selection)
[t]
[t]
break
[f]
[f]
[t]
break
[f]
if else statement
(double selection)
[f]
[t]
[t]
break
[f]
default processing
Repetition
while statement
do while statement
for statement
initialization
[t]
[t]
[f]
[f]
[t]
increment
[f]
Fig. 5.21 | Java's single-entry/single-exit sequence, selection and repetition statements.
 
Search WWH ::




Custom Search