Java shuffle card deck
问题 I am having problem getting my code to shuffle the deck. I think i have the syntax for collections.shuffle wrong. The code I currently have is not shuffling the deck. Below please find the deck class and the card class. The deck class holds the collections.shuffle method. Deck class public class Deck { private Card[] deck = new Card[52]; private int topCard; Deck() { topCard = 0; for (int i = 0; i < deck.length; i++) deck[i] = new Card(i); } public void shuffle() { topCard = 0; Collections