Comment on Java Puzzle: Square RootparentComments−nire13yYup, just set a new PrintStream(new ByteArrayOutputStream()) in System.setOut() and you're good.
Comments
Yup, just set a new PrintStream(new ByteArrayOutputStream()) in System.setOut() and you're good.