-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi,all. I have been deadlocked in finding solution for my codes.
I have been searching for three days, almost get what I want. Please review my codes below;
private String promptForText(String prompt, Character mask, DataInputStream in, PrintWriter out) throws Exception {
String line;
ConsoleReader consoleReader = new ConsoleReader(in, out);
line = consoleReader.readLine(prompt, mask);
return line;
}
String pwd = promptForText("password:",'*',in,out);
The output I get:
password: f*a*c*t*o*r*y*
Thank You So Much.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels