title: pass two parameters using java8 stream().map to call service method
body: <p>I've the below service which works correctly with <code>Java8</code></p>
  
  <pre><code>List&lt;ReportCount&gt; getReportDetails(List&lt;String&gt; statusList);
  
  statusList.add(Arrays.asList("SUCCESS"));
  statusList.add(Arrays.asList("CANCELLED"));    
  statusList.add(Arrays.asList("ON_HOLD","INPROGRESS"));
  
  statusList.stream()
            .map(reportService::getReportDetails)
            .forEach(e -&gt; reportMap.put("report_" + reportMap.size(), e));
  </code></pre>
  
  <p>How to pass 1 more parameter using above code for below method.</p>
  
  <pre><code>String id="CA";
  List&lt;ReportCount&gt; getReportDetails(List&lt;String&gt; statusList, String id);
  </code></pre>
  
  <p>Could anyone please help. Thanks</p>