@@ -0,0 +1,1056 @@
+package com.javarush.task.task16.task1611;%0A%0A/* %0A%D0%A7%D0%B0%D1%81%D1%8B%0A*/%0A%0Apublic class Solution %7B%0A    public static volatile boolean isStopped = false;%0A%0A    public static void main(String%5B%5D args) throws InterruptedException %7B%0A        Clock clock = new Clock();%0A        Thread.sleep(2000);%0A        isStopped = true;%0A        System.out.println(%22Clock has to be stopped%22);%0A        Thread.sleep(2000);%0A        System.out.println(%22Double-check%22);%0A    %7D%0A%0A    public static class Clock extends Thread %7B%0A        public Clock() %7B%0A            setPriority(MAX_PRIORITY);%0A            start();%0A        %7D%0A%0A        public void run() %7B%0A            try %7B%0A                while (!isStopped) %7B%0A                    printTikTak();%0A                %7D%0A            %7D catch (InterruptedException e) %7B%0A            %7D%0A        %7D%0A%0A        private void printTikTak() throws InterruptedException %7B%0A            //add your code here - %D0%B4%D0%BE%D0%B1%D0%B0%D0%B2%D1%8C %D0%BA%D0%BE%D0%B4 %D1%82%D1%83%D1%82%0A            Thread.sleep(500);%0A            System.out.println(%22Tik%22);%0A            Thread.sleep(500);%0A            System.out.println(%22Tak%22);%0A        %7D%0A    %7D%0A%7D%0A

Complete task1611