I have tried removing the parameters and still I am getting cannot find symbol on card.printCard();
public class Card {
int suit, rank;
public Card () {
this.suit = 0; this.rank = 0;
}
public void printCard () {
String[] suits = { "Clubs", "Diamonds", "Hearts", "Spades" };
String[] ranks = { "narf", "Ace", "2", "3", "4", "5", "6",
"7", "8", "9", "10", "Jack", "Queen", "King" };
System.out.println (ranks[c.rank] + " of " + suits[c.suit]);
}
}
}
public class Cards {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
card.printCard();
}
}
--- Update ---
Fixed the issue. Thanks Cur.