Assignment 1

Due before class on Friday, April 10th

For each applet you must write, include a publicly accessible Web address (your account on the classes server will be just dandy) of the HTML file that contains the applet tag. Turn in a printed copy of your Java source code as well.

  1. Exercise 1.8
  2. Exercise 1.25
  3. Exercise 2.11
  4. What's the difference between an object and a class?
  5. Write an applet displays 5 nested shapes (rectangles, ovals, polygons or whatever else you can dream up -- check out the Graphics class for ideas). For example, if you chose squares, your program might display: