title: Convert two lists into keys and values of new map, respectively
body: <p>The code to do this is exactly easy:</p>
  
  <pre><code>Map&lt;K, V&gt; listsToMap(List&lt;K&gt; keys, List&lt;V&gt; values) {
      // check preconditions - sizes
      Map&lt;K, V&gt; map = new HashMap&lt;&gt;();
      for ( int i = 0; i &lt; keys.size(); i++) {
          map.put(keys.get(i), values.get(i));
      }
  }
  </code></pre>
  
  <p>My question is: does this exist in one of the most common Java libraries? That would be the standard library, including Java 7 or Java 8, Apache Commons, or Guava. I'm asking here because I've thus far failed to find it on a Google search, and therefore, adding an SO question with the best keywords I've used will help the next person with the same problem.</p>