title: Incompatible type card cannot be converted to string
body: <p>Not sure how to fix this error, I commented where the error in the code, very new to java. I am trying to send my cards into my constructor and create a deck array.</p>
  
  <pre><code>public abstract class CardGame {
      protected String[] deck = new String[52];
      private String[] Suit = {"Spade","Dimond","Heart","Club"};
      private String[] Card = {"2","3","4","5","6","7","8","9","10","jack","queen","king","ace"};
  
  public CardGame(){
      int c = 0;
     for (int x=0; x &lt; Suit.length; ++x){
         for (int i = 0; i &lt; Card.length; ++i){
             deck[c] = new Card(Suit[x], Card[i]); // heres the error
             c++;
         }
  
      } 
  
  }
  
  }
  
  public class Card {
     String suit;
     String name;
  
  public Card(String s,String n){
      suit = s;
      name = n;
  }
  
  public String getsuit(){
     return suit;
  }
  
  public String getname(){
     return name;
  }
  
  }
  </code></pre>