Jeff Verdegan wrote:
Doug Morand wrote:Seems that the TreeMap is a bit tricky to implement.
I doubt you're implementing TreeMap. More likely you're using it. And it's not hard to use at all. But you have to use it consistently. For instance, checking for something being contained should be consistent with it being equal to something else in your tree as per the comparator.