Java Reference
In-Depth Information
SR 2.48 What would be the result of making each of the following changes
separately to the Snowman program? You may make the change, com-
pile and run the program, and observe and report the results. Briefly
explain what you observe.
a. The value of MID is set to 120 instead of 150.
b. The value of TOP is set to 25 instead of 50.
c. Just before the last two statements of the program (the statements
that draw the hat) we include the statement
page.setColor (Color.blue);
d. In the statement that creates the smile, the 190 is changed to a 10.
e. Just before the statement that creates the upper torso, the fore-
ground color is set to cyan. It is set back to white immediately
after the upper torso is created.
Search WWH ::




Custom Search