The following is a simple example, using java to execute the task one hour after the run!
Copy the code code as follows:
Timer timer = new Timer();
TimerTask task = new TimerTask() {
@Override
public void run() {
System.out.println("Tasks to be executed...");
}
};
timer.schedule(task, 60*60*1000);