This should work:
public interface MyClass{static enum BOOP{a,b,c,d,e,f}};
${org.java.some.MyClass.BOOP.values()[5]}
Also, you cannot get an element with index 6 because the array is based on 0, and you don't have 7 elements in your enumeration.
source
share