Advertisement
Guest User

Untitled

a guest
Aug 16th, 2010
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. public class Main {
  2.  
  3.     public static void main(String[] args) {
  4.         Main m = new Main();
  5.         m.foo();
  6.         m = null;
  7.     }
  8.    
  9.     public void foo()
  10.     {
  11.         Timer t = new Timer();
  12.         t.schedule(new SysPrint(), 200);
  13.     }
  14.  
  15. }
  16.  
  17. class SysPrint extends TimerTask
  18. {
  19.     public void run()
  20.     {
  21.         System.out.println("Yes!");
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement