How to sort a map on date basis where one element(Value) of the map is date, and I have to sort according to date without removing duplicates.(JDK 1.7)
Map< String, String> hMap=new HashMap<String, String>();
values in the hMap after all the elements being added to it
hMap.put("1","a")
hMap.put("2","b")
hMap.put("3","date");// here I can convert it to date by the help of SimpleDateFormat(yyyyMMdd).