1415161718192021222324
Card[] cards = new Card[52]; int pos = 0; for (Title t : Title.values()) { for (Symbol symbol : Symbol.values()){ cards[pos] = new Card(t, symbol); pos++; } } return cards; }
2324252627282930313233
return cards; } public static void shuffle(Card[] cards){ int top = cards.length; Card temp; while (top > 0) { int num = rand.nextInt(top); temp = cards[num]; top--;