A simple example of multithreading in Java.