title: How to read from standard input line by line?
body: <p>What's the Scala recipe for reading line by line from the standard input ? Something like the equivalent java code : </p>
  
  <pre><code>import java.util.Scanner; 
  
  public class ScannerTest {
      public static void main(String args[]) {
          Scanner sc = new Scanner(System.in);
          while(sc.hasNext()){
              System.out.println(sc.nextLine());
          }
      }
  }
  </code></pre>