// A playing card interface // Written by: Kim Bruce, 2/04 public interface CardInterface{ // "final" is what makes them constants // "static" shares one copy of the value over all objects in class // "public" means other classes can use them // constants static final int CLUBS = 0; static final int DIAMONDS = 1; static final int HEARTS = 2; static final int SPADES = 3; // No need to start with 0 as first value; they need not even be consecutive static final int TWO = 2; static final int THREE = 3; static final int FOUR = 4; static final int FIVE = 5; static final int SIX = 6; static final int SEVEN = 7; static final int EIGHT = 8; static final int NINE = 9; static final int TEN = 10; static final int JACK = 11; static final int QUEEN = 12; static final int KING = 13; static final int ACE = 14; // POST: return suit of the card int getSuit(); // POST: return rank of the card int getRank(); }