@@ -0,0 +1,1063 @@
+package com.javarush.task.task08.task0815;%0A%0Aimport java.util.HashMap;%0Aimport java.util.HashSet;%0A%0A/* %0A%D0%9F%D0%B5%D1%80%D0%B5%D0%BF%D0%B8%D1%81%D1%8C %D0%BD%D0%B0%D1%81%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F%0A*/%0A%0Apublic class Solution %7B%0A    public static HashMap%3CString, String%3E createMap() %7B%0A        HashMap%3CString, String%3E people = new HashMap%3C%3E();%0A        for (int i = 0; i %3C 10; i++)%0A            people.put(i + %22%22, (i * 100) + %22%22);%0A        return people;%0A    %7D%0A%0A    public static int getCountTheSameFirstName(HashMap%3CString, String%3E map, String name) %7B%0A        int counter = 0;%0A        for (HashMap.Entry%3CString, String%3E pair: map.entrySet()) %7B%0A            if (name.equals(pair.getValue())) %7B%0A                counter++;%0A            %7D%0A        %7D%0A        return counter;%0A    %7D%0A%0A    public static int getCountTheSameLastName(HashMap%3CString, String%3E map, String lastName) %7B%0A        int counter = 0;%0A        for (HashMap.Entry%3CString, String%3E pair : map.entrySet()) %7B%0A            if (lastName.equals(pair.getKey())) %7B%0A                counter++;%0A            %7D%0A        %7D%0A        return counter;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A    %7D%0A%7D%0A

Complete task0815