title: Comparing two Collections in Java
body: <p>I have two Collections in a Java class.The first collection contains previous data, the second contains updated data from the previous collection. </p>
  
  <p>I would like to compare the two collections but I'm not sure of the best way to implement this efficiently.Both collections will contain the same amount of items.</p>
  
  <p>Based then on the carType being the same in each collection I want to execute the carType method.</p>
  
  <p>Any help is appreciated</p>