So in my program, I have a List with 1000 ticket objects. Each object has an int ID and an int SortedSet of 6 numbers. I want the user to be able to input six numbers, and for these 6 numbers to be compared to the 6 six numbers in the sorted set in each of the 1000 objects in the list. If the numbers match, I want the ID of the object to be output. What would be the best way of achieving this? Should I put the 6 numbers entered by the user into a SortedSet as well? That is what I was thinking of doing. If so, how would I compare the SortedSet to each of the 1000 SortedSets in my List? I've been working on this for two days and my head is fried lol!
Hope that made sense!