This week's book giveaway is in the Java in General forum. We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line! See this thread for details.
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 ]