TimerTask() not doing what was supposed to, only printing one time
<pre><code>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);
}
</code></pre>

<p>This was supposed to print "IN" every second but it is only printing one time. Any tips? Thank you</p>

<p>What </p>
