tags:

views:

191

answers:

1

How to stop timer function after some time in Java.

+1  A: 

You need to give a little more background to your question. Suppose you have a timer called mytimer that is running you can stop it when you are ready by calling the stop() method.

if(mytimer.isRunning()){
   mytimer.stop();
}
Vincent Ramdhanie