JCite With Default Style

Citing Entire Blocks

Here's one of the snippets also cited in the main documentation:

/**
 * This is a <b>sample</b> method. Just like {@link #sampleCode()}.
 *
 * @author Peter Arrenbrecht
 */
void sampleMethod()
{

  // This is a quick test of JCite.
  sampleMethod();
  if ("a" == "b") System.out.println( "Oops!" );
  try {
    int a = 1;
    System.out.println( a );
  }
  finally {
    System.out.println( "Done." );
  }

}

If you open the print preview of this page, you will see how it looks when formatted for print media.

Back