title: Create multiple maps from a list in Java 8
body: <p>Is there a way to create multiple maps from a list in Java 8 using stream or other way?</p>
  
  <p>I have a list of custom object. 
  Suppose List where Employee has departmentId so there are some employees which have the same departmentId = "001" for example.
  I want to create multiple maps based on Employee.departmentId.</p>
  
  <p>For example, </p>
  
  <p>map1 = &lt;"001", employee1>,&lt;"001", employee3>, &lt;"001", employee8>...&lt;"001", employee100></p>
  
  <p>map2 = &lt;"002", employee2>,&lt;"002", employee4>,..., &lt;"002", employee8>
  ...
  something like this.</p>
  
  <p>since for each element in list check the departmentId and put it in corresponding map by using old for loop. Wondering is there a better way to do this? Currently I'm using Java 8</p>