title: Reading password from console in Scala
body: <p>In a Scala program I need to read from the standard input a password string (with echoing disabled). I tried with:</p>
  
  <pre><code>java.io.Console.readPassword
  </code></pre>
  
  <p>But for some reason I cannot invoke any methods in the <code>java.io.Console</code> object from Scala (?). </p>
  
  <p>Which is the "standard" way to read a string (with echoing disabled) from the standard input in Scala ?</p>