@@ -0,0 +1,907 @@
+package com.javarush.task.task08.task0819;%0A%0Aimport java.util.HashSet;%0Aimport java.util.Iterator;%0Aimport java.util.Set;%0A%0A/* %0ASet %D0%B8%D0%B7 %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        Set%3CCat%3E cats = createCats();%0A%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. step 3 - %D0%BF%D1%83%D0%BD%D0%BA%D1%82 3%0A        Iterator%3CCat%3E iterator = cats.iterator();%0A        cats.remove(iterator.next());%0A        printCats(cats);%0A    %7D%0A%0A    public static Set%3CCat%3E createCats() %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. step 2 - %D0%BF%D1%83%D0%BD%D0%BA%D1%82 2%0A%0A        HashSet%3CCat%3E catSet = new HashSet%3C%3E();%0A        catSet.add(new Cat());%0A        catSet.add(new Cat());%0A        catSet.add(new Cat());%0A%0A        return catSet;%0A    %7D%0A%0A    public static void printCats(Set%3CCat%3E cats) %7B%0A        // step 4 - %D0%BF%D1%83%D0%BD%D0%BA%D1%82 4%0A        for (Cat cat : cats) %7B%0A            System.out.println(cat);%0A        %7D%0A    %7D%0A%0A    // step 1 - %D0%BF%D1%83%D0%BD%D0%BA%D1%82 1%0A    public static class Cat %7B%0A%0A    %7D%0A%7D%0A

Complete task0819