i am getting the output but not able to pass last condition
package com.codegym.task.task08.task0805;
import java.util.HashMap;
import java.util.Map;
/*
Values on the screen!
*/
public class Solution {
public static void main(String[] args) throws Exception {
HashMap<String, String> map = new HashMap<String, String>();
map.put("Sim", "Sim");
map.put("Tom", "Tom");
map.put("Arbus", "Arbus");
map.put("Baby", "Baby");
map.put("Cat", "Cat");
map.put("Dog", "Dog");
map.put("Eat", "Eat");
map.put("Food", "Food");
map.put("Gevey", "Gevey");
map.put("Hugs", "Hugs");
printValues(map);
}
public static void printValues(Map<String, String> map) {
HashMap<String, String> maps = new HashMap<String, String>();
for(Map.Entry<String,String>pair : map.entrySet())
{
String value = pair.getValue();
String key = pair.getKey();
System.out.println(key+" - "+value);
}
//write your code here
}
}