Skip to content

Instantly share code, notes, and snippets.

@mjedynak
Created February 9, 2012 20:49
private Map<String, Integer> map = new HashMap<>();
public Integer getKey(String key) {
synchronized (map) {
return map.get(key);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment