I have a set of key-values in the following format (id1, value1,value2,value3...) , (id2, value1,value2,value3...) and so on.
I need to store this in some java variable(collection object?).
After this, at a later point, I need to compare the values corresponding to each id above with the values contained in another String array. Whenever a match is found it should break.
How should I go about doing this/ What is the best method using which this can be accomplished with the most suitable data type for the kind of key value pair structure shown above?
Any help with some small simulated demo code snippet is much appreciated.