Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Exercises

  1. Write a small application that attempts to inappropriately dispose of a Pen object that was obtained from the Pens class. Note the error message that results.
  2. Create an application that displays a three-color traffic light. Have the traffic light change color when the user clicks on it.
  3. Write an application that inputs RGB values. Display the color in a rectangle. Display the HSB values of the color.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint