netbeansからこのプログラムは実行できない
command promptで実行している
public class Outer {
public static void main(String[] args) {
Console c = System.console();
String s = c.readLine();
System.out.println("you typed " + s);
char[] cs = c.readPassword();
System.out.println("you typed " + String.valueOf(cs));
}
}
ooo
you typed ooo
you typed ppp