I was trying out enum type in Java. When I write the below class,
public class EnumExample {
public enum Day {
private String mood;
MONDAY, TUESDAY, WEDNESDAY;
Day(String mood) {
}
Day() {
}
}
}
Compiler says: Syntax error on token String, strictfp expected.
I do know what's strictfp
but would it come here?