Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. package newProject;
  2.  
  3. import javax.swing.JButton;
  4.  
  5. public class MyExample {
  6.  
  7. public static void main(String[] args) {
  8.  
  9. System.out.println(Thread.activeCount() + " " + Thread.currentThread());
  10. MyThread myExample = new MyThread();
  11. System.out.println(Thread.activeCount() + " " + Thread.currentThread());
  12. }
  13.  
  14. }
  15.  
  16. class MyThread {
  17.  
  18. JButton button=new JButton();
  19.  
  20. public MyThread() {
  21.  
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement