public char[] readPassword(String format,Object... args){
synchronized (CONSOLE_LOCK) {
    format(format,args);
    return readPassword();
  }
}

public char [ ] readPassword ( String format , Object ... args ) { synchronized ( CONSOLE_LOCK ) { format ( format , args ) ; return readPassword ( ) ; } }
reads a password from the console . the password will not be echoed to the display . a formatted prompt is also displayed .
