@@ -0,0 +1,1549 @@
+package com.javarush.task.task16.task1610;%0A%0A/* %0A%D0%A0%D0%B0%D1%81%D1%81%D1%82%D0%B0%D0%B2%D1%8C %D0%B2%D1%8B%D0%B7%D0%BE%D0%B2%D1%8B %D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%BE%D0%B2 join()%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) throws InterruptedException %7B%0A        Cat cat1 = new Cat(%22%D0%9C%D1%83%D1%80%D0%BA%D0%B0%22);%0A        Cat cat2 = new Cat(%22%D0%9F%D1%83%D1%88%D0%B8%D0%BD%D0%BA%D0%B0%22);%0A    %7D%0A%0A    private static void investigateWorld() %7B%0A        try %7B%0A            Thread.sleep(200);%0A        %7D catch (InterruptedException e) %7B%0A        %7D%0A    %7D%0A%0A    public static class Cat extends Thread %7B%0A        protected Kitten kitten1;%0A        protected Kitten kitten2;%0A%0A        public Cat(String name) %7B%0A            super(name);%0A            kitten1 = new Kitten(%22%D0%9A%D0%BE%D1%82%D0%B5%D0%BD%D0%BE%D0%BA 1, %D0%BC%D0%B0%D0%BC%D0%B0 - %22 + getName());%0A            kitten2 = new Kitten(%22%D0%9A%D0%BE%D1%82%D0%B5%D0%BD%D0%BE%D0%BA 2, %D0%BC%D0%B0%D0%BC%D0%B0 - %22 + getName());%0A            start();%0A        %7D%0A%0A        public void run() %7B%0A            System.out.println(getName() + %22 %D1%80%D0%BE%D0%B4%D0%B8%D0%BB%D0%B0 2 %D0%BA%D0%BE%D1%82%D0%B5%D0%BD%D0%BA%D0%B0%22);%0A            try %7B%0A                initAllKitten();%0A                kitten1.join();%0A                kitten2.join();%0A            %7D catch (InterruptedException e) %7B%0A            %7D%0A            System.out.println(getName() + %22: %D0%92%D1%81%D0%B5 %D0%BA%D0%BE%D1%82%D1%8F%D1%82%D0%B0 %D0%B2 %D0%BA%D0%BE%D1%80%D0%B7%D0%B8%D0%BD%D0%BA%D0%B5. %22 + getName() + %22 %D1%81%D0%BE%D0%B1%D1%80%D0%B0%D0%BB%D0%B0 %D0%B8%D1%85 %D0%BD%D0%B0%D0%B7%D0%B0%D0%B4%22);%0A        %7D%0A%0A        private void initAllKitten() throws InterruptedException %7B%0A            kitten1.start();%0A            kitten2.start();%0A        %7D%0A    %7D%0A%0A    public static class Kitten extends Thread %7B%0A        public Kitten(String name) %7B%0A            super(name);%0A        %7D%0A%0A        public void run() %7B%0A            System.out.println(getName() + %22, %D0%B2%D1%8B%D0%BB%D0%B5%D0%B7 %D0%B8%D0%B7 %D0%BA%D0%BE%D1%80%D0%B7%D0%B8%D0%BD%D0%BA%D0%B8%22);%0A            investigateWorld();%0A        %7D%0A    %7D%0A%7D%0A

Complete task1610