question: public char [ ] readPassword ( ) { synchronized ( CONSOLE_LOCK ) { int previousState = setEcho ( false , 0 ) ; try { String password = readLine ( ) ; writer . println ( ) ; return ( password == null ) ? null : password . toCharArray ( ) ; } finally { setEcho ( true , previousState ) ; } } }
target:  Reads a password from the console. The password will not be echoed to the display.