Map<Integer, String> map=new HashMap<Integer, String>();
for (Map.Entry<String,Integer> entry:map.entrySet()) {
     System.out.println("Key:"+entry.getKey());
     System.out.println("Value:"+entry.getValue());
}