Possible Duplicate:
Adding enum type to a list
I have an enum class:
public enum MyEnum {
ONE, TWO, THREE;
}
And in another class, MyClass.java, I want to have the following
ArrayList<MyEnum> list;
is this possible? because I’m encountering some issues.
There should be no problem doing that.
This code compiles fine: