public class Card
extends java.lang.Object
Constructor and Description |
---|
Card(char suit,
int kind)
Set suit and kind of the card
|
Modifier and Type | Method and Description |
---|---|
int |
getKind() |
char |
getSuit() |
java.lang.String |
toString() |
public Card(char suit, int kind)
suit
- is the suit of the card: S, C, D, Hkind
- is the kind of the card: 1, 2, ... 13public char getSuit()
public int getKind()
public java.lang.String toString()
toString
in class java.lang.Object