posted 16 years ago
By the way, it is incorrect to say that your keys here are String arrays. The variable nodes refers to a String array, but nodes[ i ] refers to a single element in the array, which is just a single String, not an array. That's good, because arrays really cannot be used successfully as keys in a Map (Hashtable in this case). The fact is that equals() and hashCode() for an array object are not suitable for use as a key, and you can't override those methods in an array. You'd have been better off with a custom class that contained an array. However, it turns out that this discussion was unnecessary, because your keys are not arrays at all.
[ February 25, 2008: Message edited by: Jim Yingst ]
"I'm not back." - Bill Harding, Twister