/* CardProgram3.java CIS 160 David Klick 2016-11-01 Creates and shuffles a deck of cards. */ import java.util.Arrays; import java.util.Collections; public class CardProgram3 { public static void main(String[] args) { String[] cards = createDeck(); Collections.shuffle(Arrays.asList(cards)); for (String s : cards) System.out.println(s); } private static String[] createDeck() { String[] cards = new String[52]; String[] suit = { "Spades", "Hearts", "Clubs", "Diamonds" }; String[] rank = { "Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Jack", "Queen", "King" }; for (int i=0; i