Re:Java Puzzle: Square Root
by craigching on Tuesday March 19, 2013 @10:45PM
(#5405286)
But n is also private, so you can't reassign it without using setAccessible or changing the security manager, both forbidden by the rules.
But "n" is private and the rules state the solution must be in a different class. Thus you can't simply reassign it.
Immutability is your friend. Use it or lose it.