Back to ICS211

Mobius strip

Java Coding Standards

In this class, we will follow Java's official code conventions. You must document your classes and methods with JavaDoc comments.

ICS's Java Coding Standards
For this course, you must follow the guidelines given in this document, which is a subset of Java's offical code conventions.

Exceptions/Clarifcatons/Additions:
  • You do not need to provided version control comments.
  • You may put either one or two blank lines between method definitions.
  • You may indent either 2, 4, or 8 spaces; you may use either tabs or spaces. Whatever you choose, you must be consistent!
  • Lines should not exceed 80 characters in length.
Code Conventions for the Java Programming Language
These are Java's official code conventions. They are more extensive than those standards given above. You are strongly encouraged to read this document and format your code accordingly.
More on Documenting With JavaDoc
Briefly, what to write and how to turn your comments in to API-like HTML.
Example Code: HelloWorld.java
You can see the generated JavaDoc documentation for this file. Also, here is a bad example of following the coding standards.


~ztomasze Index : TA Details: ICS211: Coding Standards
http://www2.hawaii.edu/~ztomasze
Last Edited: 07 Sept 2004
©2004 by Z. Tomaszewski.