public static enum enuGender{ MALE, FEMALE, UNKNOWN } public enuGender gender; //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Constructors &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& public Athlete(String firstName, String lastName, int age, enuGender gender) { super(); this.firstName = firstName; this.lastName = lastName; this.age = age; this.gender = gender; } I have this code in an "Athlete" class, however when I try to instantiate an athlete in my main class like so:
Athlete ath = new Athlete("Jim", "Denver", 33, enuGender.MALE); I am told the enuGender cannot be resolved to a variable. Can I not pass an enum value in the constructor??