title: How to split a string and grouping all the info into a map with duplication values using Java 8 Stream?
body: <p>I have the following string:</p>
  
  <pre><code>"id1:name1,id2:name1,id3:name2,id4:name2,id5:name2"
  </code></pre>
  
  <p>and I want to convert this string into a map of the following form:</p>
  
  <pre><code>{name2=[id3, id4, id5], name1=[id1, id2]}
  </code></pre>
  
  <p>My requirement is the same as this question: <a href="https://stackoverflow.com/questions/36740710/how-to-split-a-string-into-a-map-with-a-list-of-values">How to split a string into a map with a list of values?</a> However, how can I do this using <strong>Java 8 Stream API</strong>?</p>