Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Map; import java.util.Set; public class Main { private static String getStrInMapIgnoreCase(String key, Map<String, Object> map) { Set<String> keySet = map.keySet(); for (String keyInMap : keySet) { if (key.equalsIgnoreCase(keyInMap)) { return keyInMap; } } return null; } }