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 an Inplor.
All Inplors share a single RA_ODTHIS, which is a list of strings. It is a constant. Its value is ["esh", "onge", "mo"]. Other classes cannot see its value.
public class Inplor {
public static List<String> RA_ODTHIS = List.of("esh", "onge", "mo");
public Inplor() {
}
}
Things to check in your solution:
public and private modifier correct?static?final?Acceptable variations in the solution:
+= 1 instead of ++.Related puzzles: