Documentation
The Java language was designed to support the principles of information hiding and encapsulation.  Java comes with a program called javadoc that will automatically extract the "interface" from a class definition, if you have followed the  guidelines below.  The result of running javadoc is a set of html files.

Comment conventions Example:
	/**
* Main Method of the HelloWorld program. This program
* outputs simple messages to the terminal in which it
* is running.
*
* @param args All command line arguments are ignored
*/
Using javadoc in Eclipse:

To create comments in Eclipse, put your cursor on the beginning of a method and press Shift-Alt-J (or select Source-Add Comment).  The skeleton for your javadoc comments will be provided and you can fill in the details.

To generate the html files, select Project->Generate Javadoc.  If it's the first time, you may need to tell Eclipse where the javadoc.exe file exists (it should be located in the bin directory of your jdk, e.g., c:\jdk1.5.0\bin\javadoc.exe).  Then select the file or files for which you want comments generated.  NOTE: this javadoc function will generate html files even if no comments have been inserted, but there will be no details about any of the functions.