public class Solution { public static Map<String, Integer> map() { HashMap <String, Integer> map = new HashMap<>(); map.put("Ивашкин", 150); map.put("Петров", 250); map.put("Нилов", 200); map.put("Дилов", 650); map.put("Шпак", 700); map.put("Миллер", 750); map.put("Сергеев", 3350); map.put("Конев", 350); map.put("Войтов", 300); map.put("Зотов", 900); return map; } public static void removeItemFromMap(Map<String, Integer> map) { Iterator<Map.Entry<String, Integer>> list = map.entrySet().iterator(); while(list.hasNext()) { Map.Entry<String, Integer> entry = list.next(); if (entry.getValue() < 500) { list.remove(); } } } public static void main(String[] args) { } }