/**
 * A class that can be run on a new Thead
 */
public class InParallel implements Runnable
   {
   /**
   * Method that gets called when your thread starts. It does
   * whatever you want to happen in parallel.
   */
   public void run()
      {

      out.println( "hello world from a separate thread" );
      ...
      }
   }