Map<String, String> map = new HashMap<String, String>(); map.put("key", "value"); String value = map.get("key");