Any tips on what do i have to do there ?
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() {
HashMap<String, Integer> map = new HashMap<String, Integer>();
map.put("a",203);
map.put("ab",204);
map.put("afdf",20234);
map.put("afdfd",20524);
map.put("awfw",2044);
map.put("awdwd",20423);
map.put("afefe",2055);
map.put("affef",20234);
map.put("agege",205121);
map.put("awdw",202324);
return map;
}
public static void usunPozycjeZmap(HashMap<String, Integer> map) {
for(Map.Entry<String, Integer> para : map.entrySet()){
int wartość = para.getValue();
String klucz = para.getKey();
if(wartość < 500){
map.remove(klucz,wartość);
}
}
}
public static void main(String[] args) {
}
}