@@ -0,0 +1,1557 @@
+package com.javarush.task.task09.task0927;%0A%0Aimport java.util.HashMap;%0Aimport java.util.HashSet;%0Aimport java.util.Map;%0Aimport java.util.Set;%0A%0A/* %0A%D0%94%D0%B5%D1%81%D1%8F%D1%82%D1%8C %D0%BA%D0%BE%D1%82%D0%BE%D0%B2%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        Map%3CString, Cat%3E map = createMap();%0A        Set%3CCat%3E set = convertMapToSet(map);%0A        printCatSet(set);%0A    %7D%0A%0A    public static Map%3CString, Cat%3E createMap() %7B%0A        //%D0%BD%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%BA%D0%BE%D0%B4%0A        HashMap%3CString, Cat%3E catMap = new HashMap%3C%3E();%0A        catMap.put(%22cat1%22, new Cat(%22cat1%22));%0A        catMap.put(%22cat2%22, new Cat(%22cat2%22));%0A        catMap.put(%22cat3%22, new Cat(%22cat3%22));%0A        catMap.put(%22cat4%22, new Cat(%22cat4%22));%0A        catMap.put(%22cat5%22, new Cat(%22cat5%22));%0A        catMap.put(%22cat6%22, new Cat(%22cat6%22));%0A        catMap.put(%22cat7%22, new Cat(%22cat7%22));%0A        catMap.put(%22cat8%22, new Cat(%22cat8%22));%0A        catMap.put(%22cat9%22, new Cat(%22cat9%22));%0A        catMap.put(%22cat10%22, new Cat(%22cat10%22));%0A%0A        return catMap;%0A    %7D%0A%0A    public static Set%3CCat%3E convertMapToSet(Map%3CString, Cat%3E map) %7B%0A        //%D0%BD%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%BA%D0%BE%D0%B4%0A        HashSet%3CCat%3E cats = new HashSet%3C%3E();%0A        map.forEach((name, cat) -%3E cats.add(cat));%0A        return cats;%0A    %7D%0A%0A    public static void printCatSet(Set%3CCat%3E set) %7B%0A        for (Cat cat : set) %7B%0A            System.out.println(cat);%0A        %7D%0A    %7D%0A%0A    public static class Cat %7B%0A        private String name;%0A%0A        public Cat(String name) %7B%0A            this.name = name;%0A        %7D%0A%0A        public String toString() %7B%0A            return %22Cat %22 + this.name;%0A        %7D%0A    %7D%0A%0A%0A%7D%0A

Complete task0927