jfcmacro

CrearThread2.java

Mar 26th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. class CrearThread2 {
  2.  
  3.     public static void main(String args[]) {
  4.     Thread t1 = new Thread(new Interna1());
  5.     Thread t2 = new Thread(new Interna2());
  6.  
  7.     t1.start();
  8.     t2.start();
  9.     try {
  10.         t1.join();
  11.         t2.join();
  12.     }
  13.     catch (InterruptedException ie) { }
  14.     }
  15.    
  16. }
Advertisement
Add Comment
Please, Sign In to add comment