Skip to content

Instantly share code, notes, and snippets.

@loslch
Created February 11, 2017 16:39
Show Gist options
  • Save loslch/35ace0855e3da86f4db456e591468cbe to your computer and use it in GitHub Desktop.
Save loslch/35ace0855e3da86f4db456e591468cbe to your computer and use it in GitHub Desktop.
list_map.java
List<String> list = map.get(values[0]);
if (list == null) {
list = new ArrayList<String>();
}
list.add(values[1]);
map.put(values[0], list);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment