UML Activity Diagram for the do...while Repetition Statement
Figure 5.8 contains the UML activity diagram for the do
...while
statement. This diagram makes it clear that the loop-continuation condition is not evaluated until after the loop performs the action state at least once. Compare this activity diagram with that of the while
statement (Fig. 4.6).
Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.