Building A Class

Date: 1/28/2002

Class Signature

This defines the class. Start with the keywords "public class," then follow with the name of the class. The name of the class must be exactly the same as the name of the file, case and all.  Class names start with a capital letter, and are proper-cased.

Method Signatures

This defines a method,  Start with a scope declaration, then a return type, then the name of the method, then a pair of parentheses.  Any arguments go in the parentheses.  Method names start with a lower-case, and are then proper-cased. Method signatures are inside of the class signature.

Importing Classes

Import statements are used to provide access to other class files.  The java.lang package classes are automatically available.  Import statements are outside of the class signature.