title: Iterate two arraylists and put key-value to map more elegantly
body: <p>In my method for starters I make sure the two ArrayLists have the same size, otherwise I throw an exception. The solution I use to iterate two ArrayLists and put the key-value pair in a map works fine, but I also find it not very elegant or up to date.</p>
  
  <p>In this method I am filling a map that will later be used with the Apache freemarker library.</p>
  
  <pre><code>Map&lt;String, Object&gt; map = new HashMap&lt;String, Object&gt;();
  
  String placeHolder;
  String value;
  for (int i = 0; i &lt; placeHolderList.size(); i++) {
      placeHolder = placeHolderList.get(i);
      value = valueList.get(i);
  
      map.put(placeHolder, value);
  }
  </code></pre>
  
  <p>What is a more elegant and efficient way to do this in Java 8?</p>