@@ -0,0 +1,1719 @@
+package com.javarush.task.task16.task1612;%0A%0A/* %0AStopwatch (%D0%A1%D0%B5%D0%BA%D1%83%D0%BD%D0%B4%D0%BE%D0%BC%D0%B5%D1%80)%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        Runner ivanov = new Runner(%22Ivanov%22, 4);%0A        Runner petrov = new Runner(%22Petrov%22, 2);%0A        //%D0%BD%D0%B0 %D1%81%D1%82%D0%B0%D1%80%D1%82!%0A        //%D0%B2%D0%BD%D0%B8%D0%BC%D0%B0%D0%BD%D0%B8%D0%B5!%0A        //%D0%BC%D0%B0%D1%80%D1%88!%0A        ivanov.start();%0A        petrov.start();%0A        Thread.sleep(2000);%0A        isStopped = true;%0A        Thread.sleep(1000);%0A    %7D%0A%0A    public static class Stopwatch extends Thread %7B%0A        private Runner owner;%0A        private int stepNumber;%0A%0A        public Stopwatch(Runner runner) %7B%0A            this.owner = runner;%0A        %7D%0A%0A        public void run() %7B%0A            try %7B%0A                while (!isStopped) %7B%0A                    doStep();%0A                %7D%0A            %7D catch (InterruptedException e) %7B%0A            %7D%0A        %7D%0A%0A        private void doStep() throws InterruptedException %7B%0A            stepNumber++;%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 / owner.getSpeed());%0A            System.out.println(owner.getName() + %22 %D0%B4%D0%B5%D0%BB%D0%B0%D0%B5%D1%82 %D1%88%D0%B0%D0%B3 %E2%84%96%22 + stepNumber + %22!%22);%0A        %7D%0A    %7D%0A%0A    public static class Runner %7B%0A        Stopwatch stopwatch;%0A        private String name;%0A        private int speed;%0A%0A        public Runner(String name, int speed) %7B%0A            this.name = name;%0A            this.speed = speed;%0A            this.stopwatch = new Stopwatch(this);%0A        %7D%0A%0A        public String getName() %7B%0A            return name;%0A        %7D%0A%0A        public int getSpeed() %7B%0A            return speed;%0A        %7D%0A%0A        public void start() %7B%0A            stopwatch.start();%0A        %7D%0A    %7D%0A%7D%0A

Complete task1612