6 ms·Yup, just set a new PrintStream(new ByteArrayOutputStream()) in System.setOut() and you're good.by nire 14y agoYup, just set a new PrintStream(new ByteArrayOutputStream()) in System.setOut() and you're good.