This should be a Java application (not an applet).
Remember to concentrate on explicitly choosing either public
or private and either static (or non-static) for all fields
and all methods.
Since the access, return value, and arguments will effect the
testing of your class, ask me if you aren't certain!
Make certain to use the exact output wording and exact output
spacing shown in the sample run. (This time the numbers output should
be exact - it will be tested with JDK 1.2 - also called Java Platform 2.0.)
Guidelines for naming in classes:
Start the class name with a capital letter. Consider making the
class public.
Start the field names with a lower-case letter and capitalize the first
letter of the second and following words.
Start the get accessors with get and finish with the name of
the field (with the first letter of each word in the field name capitalized).
Start the set accessors with set and finish with the name of
the field (with the first letter of each word in the field name capitalized).
Start the other method names with a lower-case letter and capitalize
the first letter of the second and following words.
Guidelines for access in classes:
Consider making all fields private and consider making all methods
public.
Consider making fields and methods static when they don't change
from object to object.
Consider making fields final (i.e., constant) when the values
would normally only be changed by the programmer.
Consider making methods which are only used internally to the class
(i.e., only called by other methods in the class) private.
Remember to start with file name, your name, class, date, and purpose
- add other helpful documentation (e.g., above section(s) of code).