title: How to convert List<Integer> to Map<Integer,String> using Java8 Streams
body: <p>I have List and I want to convert to Map&lt;Integer,String&gt; using streams in java8.</p>
  <pre><code>Say for example : 
  List&lt;Integer&gt; li = Arrays.asList(1,2,3);
  
  Then want to convert to Map&lt;Integer,String&gt; like 
  Map({1,&quot;1&quot;},{2,&quot;2&quot;},{3,&quot;3&quot;})
  </code></pre>