title: Calling System.out.println() through a lambda expression
body: <p>In C# I can write the following code:</p>
  
  <pre><code>public static Action&lt;object&gt; WL = x =&gt; Console.WriteLine(x);
  </code></pre>
  
  <p>... and then every time that I want to write something out to the console I just call:</p>
  
  <pre><code>WL("Some output");
  </code></pre>
  
  <p>What would be the equivalent code using Java 8 lambda expressions? I tried the following and it does not work:</p>
  
  <pre><code>static void WL = (String s) -&gt; { System.out.println(s); }
  </code></pre>