I was helping a friend to write some Java code, who doesn\'t know a lot about Java. So I wrote him some helper functions to easily get things done that are a little quirky i
System.out is a PrintStream, therefore the code you provide above has literally no advantage over just calling System.out.print directly. The reason it is not writing anymore is that close did, in fact, close System.out.
If this is for logging, learn log4j for your friend or help him learn it. Log4j handles situations where you need to write to a file stream, standard out, etc. simultaneously quite well.