Java tutorial
//package com.java2s; import java.util.Map; public class Main { public static String getMapValue(Map<String, Object> map, String key) { String value = ""; if (map != null) { if (map.containsKey(key) && map.get(key) != null) { value = (String) map.get(key); } } return value; } }