title: i need to make i program that prints out a shuffled deck of cards and a sorted deck of cards
body: <p>Create a array of random card.
  Output this array in a formatted print statement using a toString method (unsorted).
  Use the selection sort to sort your array.
  Sort from highest card in the deck to the lowest.
  Ascending alphabetical order: clubs (lowest), followed by diamonds, hearts, and spades (highest)
   The highest card in the deck is the ACE of Spades, the lowest is the 2 of Clubs.
  Output a sorted array using the toString method.
  Also print out the number iterations</p>
  
  <p>i am a starter coder and need help with this here is some of what i started.</p>
  
  <pre><code>public class DeckOfCards2 {
    public static void main(String[] args) {
      int[] deck = new int[52];
      String[] suits = {"Spades", "Hearts", "Diamonds", "Clubs"};
      String[] ranks = {"Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"};
  
      // Initialize cards
      for (int i = 0; i &lt; deck.length; i++) {
        deck[i] = i;
      }
  
      // Shuffle the cards
      for (int i = 0; i &lt; deck.length; i++) {
        int index = (int)(Math.random() * deck.length);
        int temp = deck[i];
        deck[i] = deck[index];
        deck[index] = temp;
      }
  
      // Display the all the cards
      for (int i = 0; i &lt; 52; i++) {
        String suit = suits[deck[i] / 13];
        String rank = ranks[deck[i] % 13];
        System.out.println( rank + " of " + suit);
      }
    }
  }
  </code></pre>