Quiz
Test whether your Java graphics skills are taking shape by answering the following questions.
Questions
1: | What method is used to change the current color before you draw something in a program?
|
2: | If you want to use the height and width of a component to determine how big something should be drawn, what can you use?
|
3: | What societal problem did this hour's first example program call attention to?
|
Answers
A1: | b. You can use the setBackground() method ... |
Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.