Note that in Java enums actually are classes (and enum values thus are objects) and thus you can't cast an int or even Integer to an enum. MyEnum.values()[x] is ...
確定! 回上一頁