title: Is it possible to initialize the keys and values of a HashMap from a List of keys, setting values to 0
body: <p>So I have an array list: </p>
  
  <pre><code>static List&lt;Integer&gt; KEYS = Arrays.asList(KEY1, KEY2, KEY3);
  </code></pre>
  
  <p>and I need to create a <code>HashMap&lt;Integer, Double&gt;</code>
  whereby the keys are KEYS, and the values are initialized to 0D.</p>
  
  <p>Can I do this in one line of code?</p>
  
  <p>Thx.</p>