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
Simple demo of java.util.Timer
Timer t=new Timer(); t.schedule(new TimerTask() { public void run() { foo(); } }, new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse("2012-07-06 13:40:20"));