What is wrong with the create map method given below?
public static HashMap<String, String> createMap() {
HashMap<String, String> hashMap = new HashMap<String, String>();
hashMap.put("last","Peter");
hashMap.put("last","Andy");
hashMap.put("last","Brody");
hashMap.put("last","Mike");
hashMap.put("last","Lance");
hashMap.put("last","Peter");
hashMap.put("last","Peter");
hashMap.put("last","Peter");
hashMap.put("last","Peter");
hashMap.put("last","Peter");
return hashMap;