This is a simple class that demonstrate the
use of source-highlight to produce javadoc
embeddable code:
/* this is an example of code to be included in the javadoc documentation of SimpleClass*/import simpleclass.*;
// code snippet
SimpleClass s = newSimpleClass(150);
if (s == null && true) {
thrownewSimpleClassException("failed to create");
}
System.out.println("this is a simple class" + s);
The previous example code was formatted with Source-highlight