x86Cow / javaBlackjack

Undocumented class found JAVA-D1000
Documentation
Minor
1 occurrence in this check
Consider adding a doc comment for Card
 1public class Card { 2 3    private int suit; 4    private int face; 5     6    public Card() {} 7 8    /** 9     * Constructs a card object with specified suit and face10     * @param suit -- Suit of card (int)11     * @param face -- Face of card (int)12     */13    14     public Card(int suit, int face) {15        this.suit = suit;16        this.face = face;17    }18   19    public int getSuit() {20        return this.suit;21    }22    public int getFace() {23        return this.face;24    }25    public String toString() {26        String output = "";27        //add switch case that sets output to the face of the card28        switch(this.getFace()) {29            case 1:30                output = "Ace";31                break;  32            case 11:33                output = "Jack";34                break;35            case 12:36                output = "Queen";37                break;38            case 13:39                output = "King";40                break;41            default:42                output = Integer.toString(this.getFace());43        }44        //add another switch case that adds " of " and the suit of the card45        switch(this.getSuit()){46            case 1:47                output += " of Spades";48                break;49            case 2:50                output += " of Hearts";51                break;52            case 3:53                output += " of Diamonds";54                break;55            case 4:56                output += " of Clubs";57                break;58        }5960        return output;61    }62}