Delete comment from: Javarevisited
Hi , Facing problem while using timers. I have scheduled job like the below. But its not triggerng when the time comes.
for(i=0;i<=3;i++)
{
Timer timer = new Timer()
timer.schedule(new Timertask() {
pubil void run()
{
System.out.println("triggereed");
}
},timevalue);
}
For the first time its getting triggered and for the next two times its not printing. and no erro is also thrown.
Is there a way to check the scheudle jobs list using the timer instance or any other way we could debug this.
Please help me
Sep 4, 2013, 4:25:21 AM
Posted to What is Timer and TimerTask in Java – Tutorial Example