title: HashMap with ArrayList
body: <p>I have a java question about a HashMap with an ArrayList in it. The key is a string and the value is the ArrayList (<code>HashMap&lt;String, ArrayList&lt;Object&gt;&gt;</code>)</p>
  
  <p>I am given a list of multiple keys and I need to put the corresponding values into the ArrayList, and I'm not sure how to do it. </p>
  
  <p>Here's an example:</p>
  
  <p>(What I am given)</p>
  
  <pre><code>ABC
  ABC
  ABC
  123
  123
  </code></pre>
  
  <p>The keys are actually file names so the file is the value for the ArrayList. Now I have to separate those filenames so i can add the files to the ArrayList. Does this make sense?</p>
  
  <p>This is the only code I have:</p>
  
  <pre><code>Set&lt;String&gt; tempModels = Utils.getSettingSet("module_names", new HashSet&lt;String&gt;(), getActivity());
          for(String s : tempModels) {
              Log.d("Loading from shared preferences: ", s);
              String key = s.substring(0, 17);
  
          }
  </code></pre>