Command Window control
Hi, I was wondering if there was a way to control whether or not input appears in the command (MS-DOS) window or not. For example, if I have a program that does something like this:
Please enter a Sentence.
I am going to the store.*presses enter*
Is there a way to control whether or not that sentence shows up in the command window?
[358 byte] By [
true_Roba] at [2007-11-26 23:41:05]

> For example, if I have a program that does something like this:
If by "does" you mean the program prints the prompt on System.out
and gets the input from System.in then your choices are pretty minimal.
(Being able to use the console effectively is a long standing bug/RFE
with Java).
But check out Console's readPassword() method in 1.6 which "Reads
a password or passphrase from the console with echoing disabled".