Comment on Java Puzzle: Square RootparentComments−mattvanhorn13yanswer() has a void return, although I suppose you might be able to watch System.out to see if it worked.−raylu13yNobody said you had to stop after reaching that line ;)−nire13yYup, just set a new PrintStream(new ByteArrayOutputStream()) in System.setOut() and you're good.
Comments
answer() has a void return, although I suppose you might be able to watch System.out to see if it worked.
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.