my eclipse doesn't recognise enum as keyword. I copied source code from oracle's site. And everything is good except enum part
public enum Day {
SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY, SATURDAY
}
where for enum is error "enum cannot be resolved to a type"...
Do i need to import something or what? I googled for answer, but that didn't work for me...
Thank you all, Matija
EDIT: Eclipse still don't recognise enum as keyword. I tried all from simmilar question and still don't work...
I can't reply my question because my reputation is too low, and i can't post pictures that show my compiler compilance level is 1.7 and i checked for all execution enviroments that they are compatible with jre8...
Thank you all for your time, Matija