do Statement
Loops are so important, and are so common in programs,
that there are several Java language features
for implementing them.
You have already seen while loops
and for loops.
This chapter looks at do loops.
A programming language needs to have
only one general looping method.
For instance, the
while statement can be used to implement any loop.
However, the for statement is very
convenient.
The do loop is occasionally convenient.
Of the three looping statements, it is used the least.
Some programmers prefer not to use it at all.
do statement.