ThreadTest2.java
The following are three sample outputs from the running of this program. Note that the output is different for all three versions of the output.
ThreadTest.java
These examples were written very quickly and currently are under commented.