java.util.map

List<Map<String,Object>> to org.json.JSONObject?

List<Map<String,Object>> list = new ArrayList<Map<String,Object>>(); Map<String, Object> map = new HashMap<String, Object>(); map.put("abc", "123456"); map.put("def", "hmm"); list.add(map); JSONObject json = new JSONObject(list); try { System.err.println(json.toString(2)); } catch (JSONExce...

java.util.Collections$UnmodifiableMap problem : code included

Hello :-) I am building a facebook platform web app using GWT and hosting it on App Engine. I am adding validation code that uses supplied query string parameters in the callback url. GWT allows me to get these parameters by calling Window.Location.getParameterMap() and the returned Map is immutable. I may be wrong however I think thi...

Creating java.util.Map in Android

Hi All, I want to create a java.util.map in android from a resource. I want to do this because I have a lot of entries to populate into the java.util.map and I want to store the values in the res folder of the project in xml format. Is there an effecient way to do this in android? My map will have around 2500 entries so I want to do th...