This content has been marked as final. Show 3 replies
but it SEEMS like i should be able to write to STDOUT, then have it wait for me until i read from STDIN.
I tried the following code:You however are missing the point that a stream has two ends. The streams you are grabbing do not let you control both ends (within java.)
So you need to create a stream, rather than using an existing one.