package proj2; /** * An enum used to represent various cookie flavors. * *
* This class is provided for you — you must not change it. *
* * @author Susan M. Mitchell (10/19/10) * @author Daniel J. Hood (3/6/11) * * @version 3/6/2011 * */ public enum CookieFlavors { /** * Represents a Chocolate Chip cookie flavor. */ CHOCOLATE_CHIP("Chocolate Chip"), /** * Represents an Oatmeal cookie flavor. */ OATMEAL("Oatmeal"), /** * Represents a Lemon cookie flavor. */ LEMON("Lemon"); private String description; private CookieFlavors(String description) { this.description = description; } /** * Returns a string representation of the cookie flavor. */ public String toString() { return this.description; } }