
198 CHAPTER 4 Introduction to Applets and Graphics
4.7.1 Multiple Choice Exercises
Questions 5,10
4.7.2 Reading and Understanding Code
Question 11
4.7.3 Fill In the Code
Question 16
4.7.4 Identifying Errors in Code
Questions 23,24,25
4.7.5 Debugging Area
Questions 29,30
Skill Practice
with these end-of-chapter questions
On line 9, we include an import statement for the Color class in the
java.awt package.
For the space suit, we instantiate a custom Color object named spacesuit on
line 19 using the constructor shown in Table 4.6. To draw the astronaut in
color, we change the draw methods to fill methods, and when we draw any
figure that is part of the space suit, ...