I know that there is a function in Java to set Standard Output Stream to any user defined value using System.setOut method..
But is there any method to reset the standard output to the one which was stored earlier or the one which is standard output?
You can get hold of the file descriptor for standard out through
FileDescriptor.out. To reset standard out to print to console, you doAnother way is to simply hold on to the original object, as follows: