/*
Создать словарь (Map) и занести в него десять записей по принципу: «фамилия» - «зарплата».
Удалить из словаря всех людей, у которых зарплата ниже 500.*/

public class Solution {
    public static Map<String, Integer> createMap() {
        Map<String, Integer> mapa = new HashMap<String, Integer>();
        mapa.put("Игорь", 300);
        mapa.put("Алекс", 350);
        mapa.put("Володя", 170);
        mapa.put("Майк", 510);
        mapa.put("Джеймс", 160);
        mapa.put("Виктор", 780);
        mapa.put("Владимир", 670);
        mapa.put("Григорий", 900);
        mapa.put("Артур", 3100);
        mapa.put("Витя", 100);
        return mapa;
    }

    public static void removeItemFromMap(Map<String, Integer> map) {
        Map<String, Integer> copy = new HashMap<>(map);
        for(Map.Entry<String,Integer> helper : copy.entrySet()){
            if(helper.getValue()<500){
                map.remove(helper.getKey());
            }
        }
    }

    public static void main(String[] args) {

    }
}