You must define how each 'node' object is compared to another - the TreeMap then uses this definition to maintain order. See post #2:



You implement this interface to define how each object...