title: Output of card shuffle using arraylists not displaying
body: <p>Everything works here except trying to show the Deck after I shuffle it. I'm not sure why, but the arraylist seems to be empty after shuffling. If I comment out the shuffling code, the Deck displays, but unshuffled, obviously. Since this is an assignment, I need my program to stay in the same general format, and the algorithm for shuffling needs to remain the same as much as possible.</p>
  
  <pre><code>public class Shuffler
  {
      public static void selectionShuffle(ArrayList&lt;Card&gt; values) {
      ArrayList&lt;Card&gt; shuffled = new ArrayList&lt;Card&gt;();
      ArrayList&lt;Card&gt; copy = new ArrayList&lt;Card&gt;();
      for (int k = 51; k &gt;= 0;) {
          int r = (int)(Math.random() * (double)52);
          if (r &lt; values.size()) {
              shuffled.add(values.get(r));
              values.remove(r);
              k--;
          }
      }
      for (int i = 0; i &lt; values.size(); i++) {
          values.set(i, shuffled.get(i));
      }
  
  
  }
  </code></pre>
  
  <p>Here is the Deck Constructor, it creates a deck out of three arrays to form three card objects.</p>
  
  <pre><code>public class Deck
  {
      public static ArrayList&lt;Card&gt; cards = new ArrayList&lt;Card&gt;();
      private int size;
      public Deck(String[] ranks, String[] suits, int[] values) 
      {
          for (int i = 0; i &lt; values.length; i++) {
              cards.add(new Card(ranks[i], suits[i], values[i]));
          }
          size = values.length;
          shuffle();
      }
  
      public void shuffle() {
          Shuffler.selectionShuffle(cards);
          size = size();
      }
  }
  </code></pre>