1
當我的密碼在控制檯窗口中它是可見的打字,反正是有這是可以改變的,以便它可以是不可見的?這裏是我的代碼:隱藏密碼輸入在控制檯窗口
String user, pass, host;
Scanner sc = new Scanner(System.in);
System.out.println("Type userid, password, hostname or ipaddress: ");
user = sc.next();
pass = sc.next();
host = sc.next();
System.out.println(user + " " + pass + " " + host);
Methods md = new Methods();
md.createTable(user, pass, host);
[從控制檯屏蔽密碼輸入:Java的]的可能的複製(http://stackoverflow.com/questions/8138411/掩蔽密碼輸入來自該控制檯的Java) –