title: Print list items with Java streams
body: <p>I can use something like:</p>
  <pre><code> .forEach(System.out::print)
  </code></pre>
  <p>...to print my list items but if I have another operation to do before printing I can't use it like:</p>
  <pre><code>mylist.replaceAll(s -&gt; s.toUpperCase()).forEach(System.out::print)
  </code></pre>
  <p>I'm getting an error:</p>
  <blockquote>
  <p>void cannot be dereferenced</p>
  </blockquote>