@@ -0,0 +1,906 @@
+package com.javarush.task.task12.task1204;%0A%0A/* %0A%D0%A2%D0%BE %D0%BB%D0%B8 %D0%BF%D1%82%D0%B8%D1%86%D0%B0, %D1%82%D0%BE %D0%BB%D0%B8 %D0%BB%D0%B0%D0%BC%D0%BF%D0%B0%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        printObjectType(new Cat());%0A        printObjectType(new Bird());%0A        printObjectType(new Lamp());%0A        printObjectType(new Cat());%0A        printObjectType(new Dog());%0A    %7D%0A%0A    public static void printObjectType(Object o) %7B%0A        //%D0%9D%D0%B0%D0%BF%D0%B8%D1%88%D0%B8%D1%82%D0%B5 %D1%82%D1%83%D1%82 %D0%B2%D0%B0%D1%88%D0%B5 %D1%80%D0%B5%D1%88%D0%B5%D0%BD%D0%B8%D0%B5%0A        if (o instanceof Cat) %7B%0A            System.out.println(%22%D0%9A%D0%BE%D1%88%D0%BA%D0%B0%22);%0A        %7D else if (o instanceof Dog) %7B%0A            System.out.println(%22%D0%A1%D0%BE%D0%B1%D0%B0%D0%BA%D0%B0%22);%0A        %7D else if (o instanceof Bird) %7B%0A            System.out.println(%22%D0%9F%D1%82%D0%B8%D1%86%D0%B0%22);%0A        %7D else if (o instanceof Lamp) %7B%0A            System.out.println(%22%D0%9B%D0%B0%D0%BC%D0%BF%D0%B0%22);%0A        %7D%0A    %7D%0A%0A    public static class Cat %7B%0A    %7D%0A%0A    public static class Dog %7B%0A    %7D%0A%0A    public static class Bird %7B%0A    %7D%0A%0A    public static class Lamp %7B%0A    %7D%0A%7D%0A

Complete task1204