Originally posted by Dave Chin:
H
I agree that would be the more simple way to do this, but Im trying to practice writing mutator fxns.
Practicing writing mutators is one thing but using java.lang.reflect.Array when you
could write data[k]=v in your mutator is another thing!
That reminds me of a gesture used by a developer I knew. He said
good code does this -- and then he would tug on his left ear lobe
with his right hand, in the obvious way -- but poorly written code does
this -- and then he would pass his right arm over the top of his head and
wrap his right hand around to tug on the left lobe again. Once we learned
the significance of all this, he would just silently make the convoluted
gesture to indicate his scorn of tortured code.