I am programming a certain card game. I have 7 cards in my hand like "7D" is 7 of diamonds. I want to program a method that gives me an ArrayList<String> which gives a list of the cards with the same number like "7H, 7D". I'm stuck on what exactly on how to go about doing it. Does anyone have any suggestions or reference I could use?