Hide Password Input On Console Window
<p>When typing in my password to the console window it is visible, is there anyway this can be changed so that it can't be visible? Here is my code:</p>

<pre><code>    String user, pass, host;

    Scanner sc = new Scanner(System.in);
    System.out.println("Type userid, password, hostname or ipaddress: ");
    user = sc.next();
    pass = sc.next();
    host = sc.next();
    System.out.println(user + " " + pass + " " + host);
    Methods md = new Methods();
    md.createTable(user, pass, host);
</code></pre>