Created
February 11, 2017 16:39
-
-
Save loslch/35ace0855e3da86f4db456e591468cbe to your computer and use it in GitHub Desktop.
list_map.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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