public static void main(String[] args) {
Timer ttt = new Timer();
TimerTask test = new TimerTask() {
@Override
public void run() {
System.out.println("IN");
}
};
ttt.schedule(test, 1000);
}
This was supposed to print "IN" every second but it is only printing one time. Any tips? Thank you
What