public void setSpecialty(Vet obj, int index) { Specialty specialty = Specialty.class.getEnumConstants()[0]; obj.setSpecialty(specialty); }