System.out.print(
MessageFormat.format( prompt, " (warning: password will be visible)" ) );
}
BufferedReader in = new BufferedReader( new InputStreamReader(
new CloseBlockingInputStream( System.in ) ) );
try {
String line = in.readLine();
if ( line == null ) return null;
else return line.toCharArray();
}