Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static int getMapValueAsInteger(Map<String, Object> list, String key) { return Integer.parseInt(getMapValueAsString(list, key)); } public static String getMapValueAsString(Map<String, Object> list, String key) { return list.get(key).toString(); } }