I need not to remove duplicates ..
HashMap<Integer,String> hm=new HashMap();
hm.put(3,"aba");
hm.put(4,"abab");
hm.put(3,"aba");
hm.put(3,"aba");
System.out.println(hm);
Is there any way to keep duplicates in HashMap ? If not what should I do(what interface or class should i use ) if I want to do so?