JDK 1.4 How to use assertions in JDK 1.4

http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html

Very detailed article on sun site about various guidelines on using Java assertions.