FileDocCategorySizeDatePackage
Reminder.javaAPI DocExample681Tue Dec 12 18:57:46 GMT 2000None

Reminder

public class Reminder extends Object
Simple demo that uses java.util.Timer to schedule a task to execute once 5 seconds have passed.

Fields Summary
Timer
timer
Constructors Summary
public Reminder(int seconds)

        timer = new Timer();
        timer.schedule(new RemindTask(), seconds*1000);
    
Methods Summary
public static voidmain(java.lang.String[] args)

	System.out.println("About to schedule task.");
        new Reminder(5);
	System.out.println("Task scheduled.");