I have a problem in Java using Enums.
I have read the documentation about assigning value parameters to Enums.
But, my question is what about multiple values, is it possible
Alternatively add a method, so your enums and constructor can be more clean if the structure is more complicated:
public Language getLanguage(String code){
switch(code){
case "en":
case "en_GB":
...
case "eng":
return ENGLISH;
case "rus":
case "russian":
return RUSSIAN;
}
}