Apache commons lang will allow you to do something similar (string based example, configurable)
Here is the code:
import java.util.Map;
import org.apache.commons.lang.ArrayUtils;
public class ArrayToMapExample {
public static void main(String[] args) {
Map dict = ArrayUtils.toMap(new String[][]{{"United States", "New York"},
{"United Kingdom", "London"},
{"Netherland", "Amsterdam"},
{"Japan", "Tokyo"},
{"France", "Paris"}});
System.out.println("Capital of France is " + dict.get("France"));
}
}