|For example, HelloWorld.java prints out "Hello World" to standard output (screen display) . How can I write another java program to capture the output "Hello World" after HelloWorld.java is executed? I just don't want to use a temp file to store the data.|
Can somebody provide me couple lines of code as a hint?
Thanks a lot !!!