public enum ItemType{REFRENCE,ISSUE};
ItemType itemType = IntemType.ISSUE ;
int intemNo=0;
I am geting error wheni use above code?why is it so?
public enum ItemType{REFRENCE,ISSUE};
ItemType itemType = IntemType.ISSUE ;
int intemNo=0;
I am geting error wheni use above code?why is it so?
Did you compile with setting "source java 1.5"? The enum syntax was't supported before java 1.5.
IntemType
or ItemType
Thanks for the comment, from JLS
Every field declaration in the body of an interface is implicitly public, static, and final.