Need to Map a Pair-tuple to a Record
Hi all,
I need a data structure or way to insert a triple (A, B, n), where A and B are strings and 'n' is a number, into a data structure. So, the pairs A and B are the keys for a record and when I see a Record that is already in the data structure, I need to increment the 'n' field; else, if it is not a duplicate, I just throw a new Record object into the data structure, where its 'n' field is initialized to some number. Essentially, I'm just reading lines from a text file consisting of several columns of information, but I only care about 3 of the columns. And to reiterate, A and B are strings which serve to indicate a unique Record and 'n' is some number. The classes TreeSet, TreeMap, and Hashtable don't seem to want to work. Please help me. Thank you.
Kindest regards,
SW

