package rc.unesp.br.beans;

/**
 * Enum to hold the rank values for a card.
 * @author lucas Pinheiro @lucaspin
 * @author Dalton Lima @daltonbr
 * @author Bruno Vedovetto @bleandro
 */
public enum Rank {
    Four("4"),
    Five("5"),
    Six("6"),
    Seven("7"),
    Queen("Q"),
    Jack("J"),
    King("K"),
    Ace("A"),
    Two("2"),
    Three("3");

    private String value;

    Rank(String value) {
        this.value = value;
    }

    public String getValue() {
        return this.value;
    }
}

@@ -500,10 +500,179 @@
 ;%0A    %7D%0A
+%0A    public Rank getNext() %7B%0A        return this.ordinal() %3C Rank.values().length - 1%0A                ? Rank.values()%5Bthis.ordinal() + 1%5D%0A                : Four;%0A    %7D%0A%0A
 %7D%0A

Add getNext() to the Rank Enum