Instructions:
Compile with:
javac -source 1.2 -target 1.1 example1.java
appletviewer example1.html

Example 1
Example 2
Example 3