// discarding output on windows, note "nul" with one l.
System.setOut( new PrintStream( new File( "nul" )));

// discarding output on Unix, note null with two ls.
System.setOut( new PrintStream( new File( "/dev/null" )));