Hacker News new | ask | show | jobs
by nire 5004 days ago
Yup, just set a new PrintStream(new ByteArrayOutputStream()) in System.setOut() and you're good.