Writing a method in Java that looks through an ArrayList of objects (specifically "card" objects, that contain the number and suit of the card) that has been filled with random cards. The method returns a boolean value whether the ArrayList contains a duplicate.
So far I've tried a for loop within a for loop, but I didn't get very far.
Also, I need another method that returns the duplicate card, but I need to finish this first method first before I attempt that.
removeAllpassing in the second list, if the size changes, you have duplicate items...