On Java 6, you can use the Console class for that. Specifically, the readLine method. From the API:
public String readLine(String fmt, Object... args)
Provides a formatted prompt, then reads a single line of text from the console.
On Java 6, you can use the Console class for that. Specifically, the readLine method. From the API:
public String readLine(String fmt, Object... args)
Provides a formatted prompt, then reads a single line of text from the console.
On Java 6, you can use the Console class for that. Specifically, the readLine method. From the API:
public String readLine(String fmt, Object... args)
Provides a formatted prompt, then reads a single line of text from the console.
On Java 6, you can use the Console class for that. Specifically, the readLine method. From the API:
public String readLine(String fmt, Object... args)
Provides a formatted prompt, then reads a single line of text from the console.