title: How to create HashMap out of Set, using streaming in Java
body: <pre><code>Set&lt;Integer&gt; ageSet = new HashSet&lt;&gt;();
  Map&lt;Integer, People&gt; map = new HashMap&lt;&gt;();
  
  for(int age : ageSet{
      People people = new People(age);
      map.put(age, people);
  }
  </code></pre>
  
  <p>I'm trying to create an instance and put it in Hashmap with its integer. If I would like to code this using parallelStream()(stream()), how could I do this? </p>