title: How to build a Java 8 stream from System.in / System.console()?
body: <p>Given a file, we can transform it into a stream of strings using, e.g.,</p>
  
  <pre><code>Stream&lt;String&gt; lines = Files.lines(Paths.get("input.txt"))
  </code></pre>
  
  <p>Can we build a stream of lines from the standard input in a similar way?</p>