title: How to print multiple parameters using Method reference in java8
body: <p>I'm trying to print out basic <code>hashmap</code> with twoin java.</p>
  
  <pre><code>Map&lt;Integer, String&gt; mp = new HashMap&lt;Integer, String&gt;();
  mp.put(10, "apple");
  mp.put(20, "orange");
  mp.put(30, "banana");
  </code></pre>
  
  <p>But I can't figure out how to print multiple parameters, when it comes to <code>method reference</code> in java8.</p>
  
  <p>I tried something like this. But it's giving me compile errors.</p>
  
  <pre><code>mp.forEach(System.out::println(i+" "+s););
  </code></pre>
  
  <p>Please help me to figure out this.
  Thank you.</p>