Java, Java, Java 3E

Sample Documentation Specifications

Prepared by: Authors and other CPSC 115 Staff
Trinity College, Hartford, CT

© 2006 Prentice-Hall

Documentation Specifications

Your Java source code files should be documented according to the style exemplified in this sample program, which may be used as a guide to documentation conventions.

We will be using javadoc comments to describe classes, methods and files. A javadoc comment begins with /** and ends with */ and is ignored by the compiler. Special tags, such as the @author tag, are used by the javadoc program to generate HTML documentation for a Java source program. In this course we will use the following tags, as exemplified in the sample program: @author, @param, @return.

Here are the documentation specifications that should be followed in documenting all labs and programming assignments.