News for hackers. Stuff that matters.
Re:Java Puzzle: Square Root by mattvanhorn on Tuesday March 19, 2013 @11:06PM (#5405356)
answer() has a void return, although I suppose you might be able to watch System.out to see if it worked.
Re:Java Puzzle: Square Root by raylu on Tuesday March 19, 2013 @11:15PM (#5405394)
Nobody said you had to stop after reaching that line ;)
Re:Java Puzzle: Square Root by nire on Thursday March 21, 2013 @06:33PM (#5419693)
Yup, just set a new PrintStream(new ByteArrayOutputStream()) in System.setOut() and you're good.