Card Class
parent
689b1ebd94
commit
283e557473
@ -0,0 +1,27 @@
|
||||
public class Card {
|
||||
|
||||
private String suit;
|
||||
private int face;
|
||||
|
||||
public Card(String suit, int face) {
|
||||
this.suit = suit.toUpperCase();
|
||||
this.face = face;
|
||||
}
|
||||
|
||||
public String getSuit() {
|
||||
return suit;
|
||||
}
|
||||
|
||||
public void setSuit(String suit) {
|
||||
this.suit = suit.toUpperCase();
|
||||
}
|
||||
|
||||
public int getFace() {
|
||||
return face;
|
||||
}
|
||||
|
||||
public void setFace(int face) {
|
||||
this.face = face;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue