How to add an element into a multiMap?
I'm using a multimap to sort my words by length. The integer is the word's
length. I was wondering how I can add words to the List.
Map<Integer, List<String>> mmap = new HashMap<Integer, List<String>>();
Say I have two words, "bob" and "can" they are both 3 letters. Could
someone give me a little pointer on how I would do this?
No comments:
Post a Comment