@@ -0,0 +1,859 @@
+package com.javarush.task.task12.task1205;%0A%0A/* %0A%D0%9E%D0%BF%D1%80%D0%B5%D0%B4%D0%B5%D0%BB%D0%B8%D0%BC%D1%81%D1%8F %D1%81 %D0%B6%D0%B8%D0%B2%D0%BE%D1%82%D0%BD%D1%8B%D0%BC%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(getObjectType(new Cow()));%0A        System.out.println(getObjectType(new Dog()));%0A        System.out.println(getObjectType(new Whale()));%0A        System.out.println(getObjectType(new Pig()));%0A    %7D%0A%0A    public static String getObjectType(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 Cow) %7B%0A            return %22%D0%9A%D0%BE%D1%80%D0%BE%D0%B2%D0%B0%22;%0A        %7D else if (o instanceof Dog) %7B%0A            return %22%D0%A1%D0%BE%D0%B1%D0%B0%D0%BA%D0%B0%22;%0A        %7D else if (o instanceof Whale) %7B%0A            return %22%D0%9A%D0%B8%D1%82%22;%0A        %7D%0A        return %22%D0%9D%D0%B5%D0%B8%D0%B7%D0%B2%D0%B5%D1%81%D1%82%D0%BD%D0%BE%D0%B5 %D0%B6%D0%B8%D0%B2%D0%BE%D1%82%D0%BD%D0%BE%D0%B5%22;%0A    %7D%0A%0A    public static class Cow %7B%0A    %7D%0A%0A    public static class Dog %7B%0A    %7D%0A%0A    public static class Whale %7B%0A    %7D%0A%0A    public static class Pig %7B%0A    %7D%0A%7D%0A

Complete task1205