Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. public enum CardValue {
  2. ACE("ACE",1),
  3. TWO("2", 2),
  4. THREE("3", 3),
  5. FOUR("4", 4),
  6. FIVE("5", 5),
  7. SIX("6", 6),
  8. SEVEN("7", 7),
  9. EIGHT("8", 8),
  10. NINE("9", 9),
  11. TEN("10", 10),
  12. JACK("11", 11),
  13. QUEEN("12", 12),
  14. KING("13", 13);
  15.  
  16. public String getValue() {
  17. return value;
  18. }
  19.  
  20. public void setValue(String value) {
  21. this.value = value;
  22. }
  23.  
  24. public int getCardValue() {
  25. return cardValue;
  26. }
  27.  
  28. public void setCardValue(int cardValue) {
  29. this.cardValue = cardValue;
  30. }
  31.  
  32. private String value;
  33. private int cardValue;
  34.  
  35. CardValue(String value, int cardValue) {
  36. this.value = value;
  37. this.cardValue = cardValue;
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement