Is it possible to call a method in java at specific time? For example of I have a piece of code like this:
class Test{
public static void main(String ar
Its is possible, and I would use a library such as http://quartz-scheduler.org/
Quartz is a full-featured, open source job scheduling service that can be integrated with, or used along side virtually any Java EE or Java SE application - from the smallest stand-alone application to the largest e-commerce system. Quartz can be used to create simple or complex schedules for executing tens, hundreds, or even tens-of-thousands of jobs; jobs whose tasks are defined as standard Java components that may execute virtually anything you may program them to do.