go to home page   go to next page

created: 01/03/03; revised: 07/22/06


CHAPTER 74 — Recursion with Graphics

Chapter Topics:

This chapter shows how to create complicated-appearing graphics with recursion. The applet draws the snowflake figure from the first chapter on recursion.

Any program that uses recursion could be written with iteration, and vise versa. Sometimes iteration is the obvious choice; sometimes recursion. Most of the programs in the previous chapters could just as easily have used iteration rather than recursion. This chapter discusses an applet that is much easier to write with recursion.

You may wish to review the first chapter on applets (chapter 36) if your recollection of applets is hazy.


QUESTION 1:

(Hazy Review: ) When a Web browser needs to display an applet, what method (part of the applet) does it call?