posted 17 years ago
The wrapper direction is good, but you'd have to make your own mutable structure.
Method2 cannot change the holder variable to point to a different IntHolder, but it can change the contents of the IntHolder that both methods have reference to.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi