Y
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
raylu
4832 days ago
Nobody said you had to stop after reaching that line ;)
link
nire
4830 days ago
Yup, just set a new PrintStream(new ByteArrayOutputStream()) in System.setOut() and you're good.
link