Map<String , Object> map = new HashMap<String, Object>();
map.put("cc" , "value3");
map.put("bb" , "value2");
map.put("aa" , "value1");
map.put("dd" , "value4");
for (Map.Entry<String, Object> entry : map.entrySet()) {
System.out.println("key= " + entry.getKey() + " and value= " + entry.getValue());
}