Translate the specification below into an idiomatic Java class definition.
(In this context, "idiomatic" means following the common style and conventions of the language.)
One kind of thing that exists in our model is a Fucric.
All Fucrics share a single ASCEOD, which is a list of strings. It is a constant. Its value is ["odce", "socla"]. Other classes can see its value.
public class Fucric {
private static List<String> ASCEOD = List.of("odce", "socla");
public Fucric() {
}
}
Things to check in your solution:
public and private modifier correct?static?final?Acceptable variations in the solution:
+= 1 instead of ++.Related puzzles: