As you can read here
Each timer has one thread on which tasks are executed sequentially.
You can schedule a task to run inside that thread, using one of the schedulling functions, such as:
Timer t = new Timer();
t.schedule(new secondClass(), delay);
//delay is the amount of time in milliseconds before execution.
since you want it to run all the time, you can consider to use schedule(java.util.TimerTask, long, long) that schedules a task for repeated fixed-delay execution after a specific delay.
Timer t = new Timer();
t.schedule(new secondClass(), delay,period);
//delay is the amount of time in milliseconds before execution.
//period amount of time in milliseconds between subsequent executions.
An advice: i would change the class name to SecondClass, since the class names use to be capitaliced.