This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 ]