@@ -0,0 +1,2305 @@
+package in.webplay.poker;%0A%0Apublic class Card %7B%0A    public enum Suit %7B%0A        HEART('h', 0),%0A        DIAMOND('d', 1),%0A        CLUB('c', 2),%0A        SPADE('s', 3);%0A%0A        private final char shortName;%0A%09%09private final int index;%0A        %0A%0A        private Suit(char shortName, int index) %7B%0A            this.shortName = shortName;%0A            this.index = index;%0A        %7D%0A%0A        public char getShortName() %7B%0A            return shortName;%0A        %7D%0A        %0A        public int getIndex() %7B%0A            return index;%0A        %7D%0A%0A        public static Suit fromShortName(char shortName) %7B%0A            for (Suit suit : Suit.values()) %7B%0A                if (suit.getShortName() == shortName) %7B%0A                    return suit;%0A                %7D%0A            %7D%0A            return Suit.HEART;%0A        %7D%0A    %7D;%0A%0A    public enum Rank %7B%0A        TWO(2, '2'),%0A        THREE(3, '3'),%0A        FOUR(4, '4'),%0A        FIVE(5, '5'),%0A        SIX(6, '6'),%0A        SEVEN(7, '7'),%0A        EIGHT(8, '8'),%0A        NINE(9, '9'),%0A        TEN(10, 'T'),%0A        JACK(11, 'J'),%0A        QUEEN(12, 'Q'),%0A        KING(13, 'K'),%0A        ACE(14, 'A');%0A%0A        private final int value;%0A        private final char shortName;%0A%0A        private Rank(int value, char shortName) %7B%0A            this.value = value;%0A            this.shortName = shortName;%0A        %7D%0A%0A        public char getShortName() %7B%0A            return shortName;%0A        %7D%0A%0A        public static Rank fromShortName(char shortName) %7B%0A            for (Rank rank : Rank.values()) %7B%0A                if (rank.getShortName() == shortName) %7B%0A                    return rank;%0A                %7D%0A            %7D%0A            return Rank.TWO;%0A        %7D%0A    %7D%0A%0A    private final Rank rank;%0A    private final Suit suit;%0A%0A    public Card(Rank rank, Suit suit) %7B%0A        this.rank = rank;%0A        this.suit = suit;%0A    %7D%0A%0A    public static Card fromString(String rankAndSuit) %7B%0A        char%5B%5D result = rankAndSuit.toCharArray();%0A        Rank myRank = Rank.fromShortName(result%5B0%5D);%0A        Suit mySuit = Suit.fromShortName(result%5B1%5D);%0A        return new Card(myRank, mySuit);%0A    %7D%0A%0A    public Rank getRank() %7B%0A        return rank;%0A    %7D%0A%0A    public Suit getSuit() %7B%0A        return suit;%0A    %7D%0A%0A    public String toString() %7B%0A        return %22%22 + rank.getShortName() + suit.getShortName();%0A    %7D%0A%7D%0A

Add src for Card class