Ok, I'm getting a little confused on how to do this. Basically i got N stacks of cards. And need to check the topCard of every stack and check that N - 1 cards match then remove them.
I peeked every stack of cards to get the top card, and added them to an arraylist. But I'm not sure how to go through the arraylist to check that n-1 match or not. (Each card has a getCard method which returns the number then suite as a String (2 Hearts or Ace Diamonds).
(both suite and number have to match)
I'm just getting a bit confused on the best/most efficient way of implementing this.