This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
My question is, how do I compare the card1 object to these Enums?
For example if my object is Card1 (Spades, Six) and I create a second object (Hearts, Two), I want to have it that because SPADES is first (higher) in the Enum list that object1 (Card1) is automatically higher that object2 (Card2).
I have to write a program that compares the values of cards.
I have been working with CompareTo() with little success