Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- Main m = new Main();
- m.foo();
- m = null;
- }
- public void foo()
- {
- Timer t = new Timer();
- t.schedule(new SysPrint(), 200);
- }
- }
- class SysPrint extends TimerTask
- {
- public void run()
- {
- System.out.println("Yes!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement