nie rozumiem tego czemu nie zalicza ostatniego wymogu? jak widac po klasie main program byl testowany (i dziala)
package pl.codegym.task.task08.task0818;
import java.util.HashMap;
import java.util.Map;
/*
Tylko dla bogaczy
*/
public class Solution {
public static HashMap<String, Integer> utworzMap() {
//tutaj wpisz swój kod
HashMap<String,Integer> mapa=new HashMap<String,Integer>();
mapa.put("Sex",69);
mapa.put("Papiez",2137);
mapa.put("Trofac",500);
mapa.put("Essa",1337);
mapa.put("Karaluch",31);
mapa.put("Gej",666);
mapa.put("PolicjantDupo",997);
mapa.put("Lichwiarz",911);
mapa.put("Ja",1488);
mapa.put("Gorilion",6000000);
return mapa;
}
public static HashMap<String,Integer> usunPozycjeZmap(HashMap<String, Integer> map) {
//tutaj wpisz swój kod
HashMap<String,Integer> trash=new HashMap<String,Integer>();
for(String name : map.keySet())
{
if(map.get(name)<=500)
trash.put(name,map.get(name));
}
for(String name : trash.keySet())
map.remove(name);
return map;
}
public static void main(String[] args) {
/*
HashMap<String,Integer> sex=utworzMap();
System.out.println(sex.entrySet());
sex=usunPozycjeZmap(sex);
System.out.println(sex.entrySet());
*/
}
}