 | Chapter Objectives (See related pages)
After you have read and studied this chapter, you should be able to- Implement repetition control in a program by using while statements.
- Implement repetition control in a program by using do–while statements.
- Implement a generic loop-and-ahalf repetition control statement.
- Implement repetition control in a program by using for statements.
- Nest a loop repetition statement inside another repetition statement.
- Choose the appropriate repetition control statement for a given task.
- Prompt the user for a yes/no reply by using the showConfirmDialog method from the JOptionPane class.
- (Optional) Write simple recursive methods.
|
|