Chapter 7: Decision making and Looping
A looping process, in general, would include the following steps:
1. Setting and initialization of a counter
2. Execution of the statements in the loop
3. Test for a specified condition for execution of the loop
4. Incrementing the counter
The Java language provides for three constructs for performing loop operations.
1. The while statement
2. The do statement
3. The for statement
Entry Control
Test False
Cond
ition
True
Test False
Cond
ition
True
A looping process, in general, would include the following steps:
1. Setting and initialization of a counter
2. Execution of the statements in the loop
3. Test for a specified condition for execution of the loop
4. Incrementing the counter
The Java language provides for three constructs for performing loop operations.
1. The while statement
2. The do statement
3. The for statement
Entry Control
Test False
Cond
ition
True
Test False
Cond
ition
True