title: Apply JDK 8 Consumer on String
body: <p>I have a question regarding Java 8. Here is my source code:</p>
  
  <pre><code>final Consumer&lt;String&gt; d = e -&gt; System.out.println(e);
  final Function&lt;String, String&gt; upper = x -&gt; x.toUpperCase();
  final Function&lt;String, String&gt; lower = x -&gt; x.toLowerCase();
  
  new Thread(() -&gt; d.accept(upper.apply("hello 1"))).run();
  new Thread(() -&gt; d.accept(lower.apply("hello 2"))).run();
  </code></pre>
  
  <p>This works quite well and produces following output:</p>
  
  <pre><code>HELLO 1
  hello 2
  </code></pre>
  
  <p>My question is now if the syntax above <code>d.accept</code> and <code>upper.apply</code> is the only possible one or if there is some more "java 8 lambda" style we could write the last two lines. </p>