Hello,
I wish I could execute a scheduled tasks. I came across and sheduleAtFixedRate Timer () but I do TimerTask occurs only once.
Here is my code:
Any help on this is appreciated. Thanks in advance.Code:Public class Scheduler{ Public Scheduler(){ Timer tm = new Timer("monTimer",true); TimerTask tsk = new TimerTask() { Public void run() { System.out.System.out.println("Execution of the Action Timer"); } }; tsk. tm.scheduleAtFixedRate(tsk,new Date(),100); }
Bookmarks