Document Conventions

The following conventions will be observed in this document.

Code

public class HelloWorld
{
  public static final void main( String args[] )
  {
     // Code in bold is important
     System.out.println("Hello World");
  }
} 

Shell commands

javac HelloWorld.java

If a command is too long to fit in a single line, it will be wrapped into several lines using the backslash ("\") character. On most UNIX shells (including BASH) you should be able to copy and paste all the lines at once into your console.

javac \
-classpath /usr/lib/java/Hello.jar \
HelloWorld.java \
HelloUniverse.java \
HelloEveryone.java 

Notes

You can find two types of notes in the text: General notes, and warnings.

[Note]

This is a general note.

This kind of notes are usually used after a block of code to point out where you can find the file that contains that particular code. It is also used to remind you of important concepts, and to suggest what sections of the tutorial you should read again if you have a hard time understanding a particular section.

[Caution]

This is a warning.

Warnings are used to emphatically point out something. They generally refer to common pitfalls or to things that you should take into account when writing your own code.