@@ -0,0 +1,953 @@
+package com.javarush.task.task16.task1625;%0A%0A/* %0A%D0%92%D0%B7%D0%B0%D0%B8%D0%BC%D0%BD%D0%B0%D1%8F %D0%B1%D0%BB%D0%BE%D0%BA%D0%B8%D1%80%D0%BE%D0%B2%D0%BA%D0%B0%0A*/%0A%0Apublic class Solution %7B%0A    static Thread t1 = new T1();%0A    static Thread t2 = new T2();%0A%0A    public static void main(String%5B%5D args) throws InterruptedException %7B%0A        t1.start();%0A        t2.start();%0A        t1.interrupt();%0A    %7D%0A%0A    public static class T1 extends Thread %7B%0A        @Override%0A        public void run() %7B%0A            try %7B%0A                t2.join();%0A                System.out.println(%22T1 finished%22);%0A            %7D catch (InterruptedException e) %7B%0A                System.out.println(%22T1 was interrupted%22);%0A            %7D%0A        %7D%0A    %7D%0A%0A    public static class T2 extends Thread %7B%0A        @Override%0A        public void run() %7B%0A            try %7B%0A                t1.join();%0A                System.out.println(%22T2 finished%22);%0A            %7D catch (InterruptedException e) %7B%0A                System.out.println(%22T2 was interrupted%22);%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A%0A

Complete task1625