Hacker News new | ask | show | jobs
by mattvanhorn 4832 days ago
answer() has a void return, although I suppose you might be able to watch System.out to see if it worked.
2 comments

Nobody said you had to stop after reaching that line ;)
Yup, just set a new PrintStream(new ByteArrayOutputStream()) in System.setOut() and you're good.