Try the following:
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Foo {
public static void main(String args[]) throws Exception {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String foo = in.readLine();
System.out.println(foo);
}
}
Password related functions must be performed manually.
source
share