Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mattvanhorn
· 13y ago · 0 comments
answer() has a void return, although I suppose you might be able to watch System.out to see if it worked.
Comments
[–]
raylu
13y ago
Nobody said you had to stop after reaching that line ;)
[–]
nire
13y ago
Yup, just set a new PrintStream(new ByteArrayOutputStream()) in System.setOut() and you're good.