title: JAVA - Error incompatible types: String cannot be converted to String[ ]
body: <p>I'm working on Java project - Playing Cards.</p>
  
  <p>And, in this Card.java class, I've declared and initialized variables and array list. I've come across this error. These errors are under each getter and setter methods.</p>
  
  <pre><code>error: incompatible types: String cannot be converted to String[]
  error: incompatible types: int[] cannot be converted to int
  
  public class Card {
  
     // private String suit;
      //private String name;
      //private int value;
  
  private String[] suit = {"spades","hearts","clubs","diamonds"};
  private String[] name = {"Ace","Jack","Queen","King"};
  private int[] value = {1,2,3,4,5,6,7,8,9,10,11,12,13};
  
  public Card(String s, String n, int v)
  {
      suit = s;
      name = n;
      value = v;
  }
  
  public String getSuit()
  {
      return suit;
  }
  
  public String getName()
  {
      return name;
  }
  
  public int getValue()
  {
      return value;
  }
  
  public String toString()
  {
      return "&lt;"+suit+" "+name+"&gt;";
  }
  </code></pre>
  
  <p>This is the whole class.</p>
  
  <p>Hope anyone knows and can help me out, thanks! (:</p>
  
  <p>If you don't understand what i'm trying to get at, let me know, try my best to explain</p>