February 2014
Beginner
1248 pages
62h 25m
English
The for statement’s UML activity diagram is similar to that of the while statement (Fig. 4.6). Figure 5.4 shows the activity diagram of the for statement in Fig. 5.2. The diagram makes it clear that initialization occurs once before the loop-continuation test is evaluated the first time, and that incrementing occurs each time through the loop after the body statement executes.
Fig. 5.4 | UML activity diagram for the for statement in Fig. 5.2.
Read now
Unlock full access