title: String to asterisk, masking password
body: <p>I'm creating this simple login code for an ATM machine.
  You enter username and password and you logs in, that works just great. Since I'm not connecting to a database or an external text file and I've just got 1 user, it's just written plainly in the Java code. But when you enter the password "p4ss" I want it to be masked, so instead of seing it on the screen while typing you should see "* * * *" or " " just blank (Like when you enter pass on Linux).</p>
  
  <p>Currently my code looks like this:</p>
  
  <pre><code>    String user;
      String pass;            
      System.out.print("User: ");
      user = Keyboard.readString();
      System.out.print("Pass: ");
      pass = Keyboard.readString();
  
      if ((user.equals("Admin")) &amp;&amp; (pass.equals("p4ss")))            
      {       
          menu();      
      }    
      else
      {       
          out.println("Wrong username or password.");
      }
  </code></pre>
  
  <p>Would appreciate any help I could get.</p>