title: Add two ArrayList to one ArrayList of hashmaps
body: <p>I have two <code>ArrayList</code> and I want to make one <code>ArrayList</code> by adding them, both lists have same size</p>
  
  <p>I am going to do it this way. </p>
  
  <p>Is this optimized or can I make it better and efficient when the lists become large?</p>
  
  <p>i.e. </p>
  
  <pre><code>    private ArrayList&lt;Bitmap&gt; imageFile= new ArrayList&lt;Bitmap&gt;();
  
      imageFile.add(xy); 
      imageFile.add(ab);
      imageFile.add(cd);
  
      private ArrayList&lt;MediaPlayer&gt; musicFile= new ArrayList&lt;MediaPlayer&gt;();
  
      musicFile.add(mm);
      musicFile.add(nn);
      musicFile.add(ll);
  
      private HashMap&lt;Bitmap, MediaPlayer&gt; mappedFiles= new HashMap&lt;Bitmap, MediaPlayer&gt;();
  
      mappedFiles.put(imageFile.get(i),musicFile.get(i))
  
  
      private ArrayList&lt;HashMap&lt;Bitmap, MediaPlayer&gt;&gt; imageMusic= new ArrayList&lt;HashMap&lt;Bitmap, MediaPlayer&gt;&gt;();
  
     imageMusic.add(mappedFiles);
  </code></pre>