
4.7 Exercises,Problems, and Projects 205
EXERCISES,PROBLEMS, AND PROJECTS
30. You coded the following on line 10 of the class MyApplet.java:
Color c = Color.Blue; // line 10
When you compile, you get the following message:
MyApplet.java:10: cannot find symbol
symbol : variable Blue
location: class java.awt.Color
Color c = Color.Blue; // line 10
^
1 error
Explain what the problem is and how to fix it.
4.7.6 Write a Short Program
31. Write an applet that displays the five Olympic rings.
32. Write an applet that displays a tic-tac-toe board. Include a few X’s and
O’s.
33. Write an applet that displays a rhombus (i.e., a parallelogram with
equal sides). Your r