Skip to content

Comment on Java Puzzle: Square Root

Comments

Use reflection to read n. Reflection lets you bypass |private|.

He specifically says you need to leave the security manager in place and you can't use setAccessbile() which you need to do with the default security manager.

that should throw an exception with the security manager on. I think. I might of read the docs wrong.

Ahh, I see.

AboutSource Built by g1lg1l

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