@@ -0,0 +1,1102 @@
+package com.javarush.task.task10.task1018;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0A/* %0A%D0%9F%D0%BE%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BA%D0%B8 %D0%BD%D1%83%D0%B6%D0%BD%D1%8B%0A*/%0A%0Apublic class Solution %7B%0A    private HashMap%3CInteger, String%3E map;%0A    private Integer index;%0A    private String name;%0A%0A    public Solution() %7B%0A        this.map = new HashMap%3CInteger, String%3E();%0A        //map.put(index, name);%0A    %7D%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        Solution solution = new Solution();%0A        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));%0A%0A        for (int i = 0; i %3C 10; i++) %7B%0A            int index = Integer.parseInt(reader.readLine());%0A            String name = reader.readLine();%0A            solution.map.put(index, name);%0A        %7D%0A%0A        for (Map.Entry%3CInteger, String%3E pair : solution.map.entrySet()) %7B%0A            solution.index = pair.getKey();%0A            solution.name = pair.getValue();%0A            System.out.println(%22Id=%22 + solution.index + %22 Name=%22 + solution.name);%0A        %7D%0A    %7D%0A%7D%0A

Complete task1018