News for hackers. Stuff that matters.
Re:Java Puzzle: Square Root by jlebar on Tuesday March 19, 2013 @09:42PM (#5405030)
Use reflection to read n. Reflection lets you bypass |private|.
Re:Java Puzzle: Square Root by craigching on Tuesday March 19, 2013 @09:55PM (#5405084)
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.
Re:Java Puzzle: Square Root by GhotiFish on Tuesday March 19, 2013 @09:47PM (#5405052)
that should throw an exception with the security manager on. I think. I might of read the docs wrong.
Re:Java Puzzle: Square Root by jlebar on Tuesday March 19, 2013 @09:51PM (#5405068)
Ahh, I see.