Java tutorial
//package com.java2s; import java.util.Map; import java.util.TreeMap; public class Main { private static String getValue(TreeMap<String, String> map, String key) { for (Map.Entry<String, String> entry : map.entrySet()) { if (entry.getKey().equalsIgnoreCase(key)) { return entry.getValue(); } } return ""; } }