I'm at a loss. As far as I can tell, I've met all of the conditions. Can anyone see why the third and fourth requirements are not being met?
package com.codegym.task.task08.task0821;
import java.util.HashMap;
import java.util.Map;
/*
Shared last names and first names
*/
public class Solution {
public static Map<String, String> createPeopleList() {
Map<String, String> people = new HashMap<String, String>() {{
put("Aaa", "Brian");
put("Bbb", "Casey");
put("Ccc", "Eliot");
put("Ddd", "Justin");
put("Eee", "Mitch");
put("Fff", "Tyler");
put("Ggg", "Tom");
put("Hhh", "Nick");
put("Iii", "Matt");
put("Jjj", "Lucas");
put("Aaa", "Tyler");
}};
return people;
}
public static void printPeopleList(Map<String, String> map) {
for (Map.Entry<String, String> s : map.entrySet()) {
System.out.println(s.getKey() + " " + s.getValue());
}
}
public static void main(String[] args) {
Map<String, String> map = createPeopleList();
printPeopleList(map);
}
}