Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public enum CardValue {
- ACE("ACE",1),
- TWO("2", 2),
- THREE("3", 3),
- FOUR("4", 4),
- FIVE("5", 5),
- SIX("6", 6),
- SEVEN("7", 7),
- EIGHT("8", 8),
- NINE("9", 9),
- TEN("10", 10),
- JACK("11", 11),
- QUEEN("12", 12),
- KING("13", 13);
- public String getValue() {
- return value;
- }
- public void setValue(String value) {
- this.value = value;
- }
- public int getCardValue() {
- return cardValue;
- }
- public void setCardValue(int cardValue) {
- this.cardValue = cardValue;
- }
- private String value;
- private int cardValue;
- CardValue(String value, int cardValue) {
- this.value = value;
- this.cardValue = cardValue;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement