26.07.2013 Views

Java How to Program Fourth Edition - DCC

Java How to Program Fourth Edition - DCC

Java How to Program Fourth Edition - DCC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

202 Control Structures: Part 2 Chapter 5<br />

The applet’s paint method operates as follows: When the for structure (lines 20–<br />

21) begins executing, the control variable counter is initialized <strong>to</strong> 1. (The first two elements<br />

of counter-controlled repetition and the name of the control variable and its initial<br />

value.) Next, the program checks the loop-continuation condition, counter

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!