can somebody just send me the code please?
package de.codegym.task.task08.task0818;
import java.util.HashMap;
import java.util.Map;
/*
Nur für die Reichen
*/
public class Solution {
public static HashMap<String, Integer> mapErstellen() {
//schreib hier deinen Code
HashMap<String, Integer> liste = new HashMap<String, Integer>();
liste.put("hans", 800);
liste.put("sdf", 752);
liste.put("hertans", 50);
liste.put("hadsghns", 73);
liste.put("hxczvbans", 800);
liste.put("hasgans", 752);
liste.put("hretans", 80500);
liste.put("hasdgans", 836800);
liste.put("hadhgjmns", 63);
liste.put("haxcvnns", 55);
}
public static void elementAusMapEntfernen(HashMap<String, Integer> map) {
//schreib hier deinen Code
//Iterator<Map.Entry<String, Integer>> = map.entrySet().iterator();
while(map.hasNext()){
Map.Entry<String, Integer> paar = map.entrySet();
String key = paar.getKey();
Integer values = paar.getValue();
if(values< 500){
map.remove();
}
}
}
public static void main(String[] args) {
}
}