Review Exercises - Class 3

  1. Write a Java code segment to show an empty graphics window that is 300 pixels high and 400 pixels wide.
  2. Write a Java code segment that reads the height and width of a picture from the use and then shows an empty graphics window of that height and width (as entered by the user).
  3. Write a Java code segment that draws the Olympic rings.

    Don't worry about making it look exactly like this picture. Just draw five interlocking rings using the appropriate colors.