From 283e5574733fc961d52f3f6058ca78e29a3073d8 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 16 Oct 2020 23:27:20 +0100 Subject: [PATCH] Card Class --- Personal/Cards/src/Card.java | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Personal/Cards/src/Card.java diff --git a/Personal/Cards/src/Card.java b/Personal/Cards/src/Card.java new file mode 100644 index 0000000..ec2edd9 --- /dev/null +++ b/Personal/Cards/src/Card.java @@ -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; + } + +}