package ru.job4j;

import java.util.*;

/**.
 * Chapter_003
 * Task 3.2.2
 * Create collection HashMap
 *
 * @author Anton Vasilyuk
 * @version 1.0
 * @since 0.1
 */
public class UserConvert {
    /**.
     * Method for convert from List to HashMap
     * @param list
     * @return
     */
    public HashMap<Integer, User> process(List<User> list) {
        Integer id;
        HashMap<Integer, User> hashMapUsers = new HashMap<>();
        for (User user: list) {
            hashMapUsers.put(user.getId(), user);
        }
        return hashMapUsers;
    }
}

@@ -349,28 +349,8 @@
 ) %7B%0A
-        Integer id;%0A
     

add file for chapter_003_3.2.2