LinkedHashMap lHashMap = new LinkedHashMap();
lHashMap.put("One", new Integer(1));
lHashMap.put("Two", new Integer(2));
lHashMap.put("Two", new Double(2.00));
this works but eclipse gives me the warning so if i use
LinkedHashMap<String,String> lHashMap = new LinkedHashMap<String,String>();
i can only use string inside the hash map how to overcome this.
If you also need Strings, then just:
(edited – changed
NumbertoObject)