Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CrearThread2 {
- public static void main(String args[]) {
- Thread t1 = new Thread(new Interna1());
- Thread t2 = new Thread(new Interna2());
- t1.start();
- t2.start();
- try {
- t1.join();
- t2.join();
- }
- catch (InterruptedException ie) { }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment