//The instances of this class are final objects representing a Letter Grade // The only LetterGrade objects are A, B, C, D and F // //The following public methods are provided // char letter() : returns 'A', 'B', 'C', 'D' or 'F' // int points() : returns 4, 3, 2, 1, or 0 // public enum LetterGrade { //The possible LetterGrade values F, D, C, B, A; //Returns the letter corresponding to this LetterGrade public char letter() { return this.toString().charAt(0); } //Returns the grade points corresponding to this LetterGrade // A: 4 B: 3 C: 2 D: 1 F: 0 public int points() { return this.ordinal(); } }