@@ -0,0 +1,1817 @@
+package com.javarush.task.task16.task1613;%0A%0A/* %0ABig Ben clock%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(%22%D0%9B%D0%BE%D0%BD%D0%B4%D0%BE%D0%BD%22, 23, 59, 57);%0A        Thread.sleep(4000);%0A        isStopped = true;%0A        Thread.sleep(1000);%0A    %7D%0A%0A    public static class Clock extends Thread %7B%0A        private String cityName;%0A        private int hours;%0A        private int minutes;%0A        private int seconds;%0A%0A        public Clock(String cityName, int hours, int minutes, int seconds) %7B%0A            this.cityName = cityName;%0A            this.hours = hours;%0A            this.minutes = minutes;%0A            this.seconds = seconds;%0A            start();%0A        %7D%0A%0A        public void run() %7B%0A            try %7B%0A                while (!isStopped) %7B%0A                    printTime();%0A                %7D%0A            %7D catch (InterruptedException e) %7B%0A            %7D%0A        %7D%0A%0A        private void printTime() 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(1000);%0A            if (hours == 0 && minutes == 0 && seconds == 0) %7B%0A                System.out.println(String.format(%22%D0%92 %D0%B3. %25s %D1%81%D0%B5%D0%B9%D1%87%D0%B0%D1%81 %D0%BF%D0%BE%D0%BB%D0%BD%D0%BE%D1%87%D1%8C!%22, cityName));%0A            %7D else %7B%0A                System.out.println(String.format(%22%D0%92 %D0%B3. %25s %D1%81%D0%B5%D0%B9%D1%87%D0%B0%D1%81 %25d:%25d:%25d!%22, cityName, hours, minutes, seconds));%0A            %7D%0A%0A            // time increment%0A            seconds++;%0A            if (seconds == 60) %7B%0A                seconds = 0;%0A                minutes++;%0A                if (minutes == 60) %7B%0A                    minutes = 0;%0A                    hours++;%0A                    if (hours == 24) %7B%0A                        hours = 0;%0A                    %7D%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Complete task1613