Possible Duplicate:
Writing data to System.in
We know that System.in
(Standard Input) is connected to console. So whenever we write in console it will flow to this stream. But is there any way to pass value to this Standard Input without entering from console, i.e. like System.in = "ABCD"
. I just want to imitate as the value is passing from console.