Skip to content

Comment on Java Puzzle: Square Rootparent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.