You can import the whole java.util package or just use full names for shuffle and asList
[ June 03, 2004: Message edited by: Irina Goble ]
Joined: May 09, 2004
If you call Collections.shuffle(Arrays.asList(deck)), you won't get any result as the shuffled list will be discarded. You could make an ArrayList from deck, shuffle the list and then make an array out of the shuffled list:
PS. Why my posts are shifted? How can I fix this?
[ June 03, 2004: Message edited by: Irina Goble ] [ June 03, 2004: Message edited by: Irina Goble ]