5 Replies Latest reply on Nov 19, 2010 4:36 PM by darrylburke

    How to hide keyboard input in a Java console application?

      I am developing a console application that request a password, but I don't wanna the password to be shown in the console when the user enters it.

      The source code is something like that:
      System.out.print("Password: ");
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) ;
      String password = "";
             password  = in.readLine() ;
      catch (IOException e) {}
      return s ;