In C #, a timer fires an event at a specific interval when it is turned on. How to achieve this in Java?
I want the method to run at a specific interval. I know how to do this in C #, but not in Java.
Code in C #:
private void timer1_Tick(object sender, EventArgs e)
{
}
I tried Timerand TimerTaskbut I'm not sure if this method will work when other methods are started.
source
share