Hi, one question..am I supposed to compare the string that is given as a parameter with the keys and values of the map or should I compare all the keys and values in the map to each other without caring about the string-parameter?
package de.codegym.task.task08.task0815;
import java.util.HashMap;
import java.util.HashSet;
/*
Zensus
*/
public class Solution {
public static HashMap<String, String> mapErstellen() {
//schreib hier deinen Code+
HashMap<String, String> map = new HashMap<String, String>();
map.put("Steve", "Jobs");
map.put("Bill", "Gates");
map.put("Steve", "Balmer");
map.put("Mark", "Zuckerberg");
map.put("Tim", "Cook");
map.put("Evan", "Spiegel");
map.put("Eric", "Schmidt");
map.put("Sergey", "Brin");
map.put("Larry", "Page");
map.put("Jawed", "Karim");
return map;
}
public static int anzahlGleicherVornamenAbrufen(HashMap<String, String> map, String name) {
//schreib hier deinen Code
return 0;
}
public static int anzahlGleicherNachnamenAbrufen(HashMap<String, String> map, String nachname) {
//schreib hier deinen Code
return 0;
}
public static void main(String[] args) {
}
}