JAVA程序设计jhtp5_05.pptVIP

  • 2
  • 0
  • 约 48页
  • 2016-08-02 发布于江西
  • 举报
JAVA程序设计jhtp5_05.ppt

Chapter 5 – Control Structures: Part 2 5.1 Introduction Continue structured-programming discussion Introduce Java’s remaining control structures 5.2 Essentials of Counter-Controlled Repetition Counter-controlled repetition requires: Control variable (loop counter) Initial value of the control variable Increment/decrement of control variable through each loop Condition that tests for the final value of the control variable WhileCounter.java Line 14 Line 16 Line 18 1 // Fig. 5.1: WhileCounter.java 2 // Counter-controlled repetition. 3 import java.awt.Graphics; 4 5

文档评论(0)

1亿VIP精品文档

相关文档