6 ms·answer() has a void return, although I suppose you might be able to watch System.out to see if it worked.by mattvanhorn 14y agoanswer() has a void return, although I suppose you might be able to watch System.out to see if it worked.raylu 14y agoNobody said you had to stop after reaching that line ;)nire 14y agoYup, just set a new PrintStream(new ByteArrayOutputStream()) in System.setOut() and you're good.