@@ -0,0 +1,843 @@
+package com.javarush.task.task16.task1619;%0A%0A/* %0A%D0%90 %D0%B1%D0%B5%D0%B7 interrupt %D1%81%D0%BB%D0%B0%D0%B1%D0%BE?%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) throws InterruptedException %7B%0A        Thread t = new Thread(new TestThread());%0A        t.start();%0A        Thread.sleep(3000);%0A        ourInterruptMethod();%0A    %7D%0A%0A    public static void ourInterruptMethod() %7B%0A        TestThread.cancel();%0A    %7D%0A%0A    public static class TestThread implements Runnable %7B%0A        private static boolean isCancel = false;%0A%0A        public static void cancel() %7B%0A            isCancel = true;%0A        %7D%0A%0A        public void run() %7B%0A            while (!isCancel) %7B%0A                try %7B%0A                    System.out.println(%22he-he%22);%0A                    Thread.sleep(500);%0A                %7D catch (InterruptedException e) %7B%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Complete task1619