// Overriding Thread's run method.
// Barry Cornelius, 21 June 2000
import java.util. Date;
public class ClockStdout extends Thread
{
   public void run()
   {
      while (true)
      {
         final Date tDate = new Date(); 
         System.out.println(tDate);
         try
         {
            Thread.sleep(2000);
         }
         catch(final InterruptedException pInterruptedException)
         {
         }
      }
   }
}
