TickTask.java

import java.util.*;
public class TickTask extends TimerTask {
  public void run() {
    System.out.println("TickTask: " + new Date());
  }
}