title: TreeMap using a string key and an arraylist
body: <p>I am brand new to using collections, so I am confused on how to do this.  I am trying to use a TreeMap to hold a word as the key and then an ArrayList to hold one or more definitions for the word.</p>
  
  <pre><code>public class Dict {
      Map&lt;String, ArrayList&lt;String&gt;&gt; dic = new TreeMap&lt;String, ArrayList&lt;String&gt;&gt;();
  
      public void AddCmd(String word, String def) {
          System.out.println("Add Cmd " + word);
          if(dic.get(word)==null){
              dic.put(word, new ArrayList.add(def));      
          }
      }
  }
  </code></pre>
  
  <p>I am getting an error on "<code>new ArrayList.add(def)</code>".  I thought this was the correct way to do this, but I am obviously wrong.  Does anyone have any ideas as to what I am doing wrong?</p>