title: How best to compare Java sets of integers?
body: <p>While learning Java I'm using the lottery like many to sharpen my new skills. As an exercise I want to create all 13.9M 6 ball combinations for a given random seed. I've managed to generate the lines OK for a given seed but I'm not currently checking they're unique and I'm therefore getting duplicates.</p>
  
  <p>What I'd like advice on his what approach to take to check each generated line against the previously generated lines? I'm currently using a set to hold the 6 numbers in each line and was wondering if I should be comparing sets or if I should use a list or something else?</p>
  
  <p>All advice appreciated :-)</p>