enumerations java example with multiple values
Example 1: multiple variables in for loop java
//for(int i = "integer", int j = "integer"...; termination statement; increments/decrements)
Example 2: enum multiple values
public enum Language{
English("english", "eng", "en", "en_GB", "en_US"),
German("german", "de", "ge"),
Croatian("croatian", "hr", "cro"),
Russian("russian");
private final List<String> values;
Language(String ...values) {
this.values = Arrays.asList(values);
}
public List<String> getValues() {
return values;
}
}