title: Creating Array of deck of cards [Java]
body: <p>I am trying to start a program that will create an array with all possible values of a deck of cards. Not entirely sure they best way to go about this but my rational here was that I would create a static array with the suits and the card values. Then I created a changeable array so that I could add the two array values like this <code>deck.add(suit[suitNumber] + value[valueNumber]);</code>. I used a for loop to automate the process. </p>
  
  <pre><code>import java.util.ArrayList;
  import java.util.Arrays;
  
  
  public class arrayTest {
  
  public static void main(String[] args) {
      // TODO Auto-generated method stub
  
      String[] suit = {"D, H, S, C"};
      String[] value = {"A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K"};
      int suitNumber = 0;
      int valueNumber = 0;
      ArrayList&lt;String&gt; deck = new ArrayList&lt;String&gt;();
  
      for (suitNumber = 0; suitNumber == suit.length; suitNumber++) {
          if (suitNumber == 3) {
              suitNumber = 0;
          }
          if (valueNumber == 13) {
              valueNumber = 0;
          }
          deck.add(suit[suitNumber] + value[valueNumber]);
  
      }
      System.out.print(deck);
  }
  
  }
  </code></pre>
  
  <p>When I run the program at this stage, I get no output other than "[]" in the console. Also the debug section shows that the deck array has 10 values of "null". Sorry I am new to programming. Anyone see what I have done wrong? </p>