You could make a 2D string array to hold the unique cards. Something like this:


String[][] deck = new String[suits.length()][cards.length()];

for (int i = 0; i < cards.length(); i++)
...