Hi,
how do you declare enums in java?
i tried doing:
private enum Box = {Big, Medium, Small};
i'm getting a compile time error here, i'm using jdk1.4.2_07 with eclipse3.0.1...
please advice...
thanks!
Printable View
Hi,
how do you declare enums in java?
i tried doing:
private enum Box = {Big, Medium, Small};
i'm getting a compile time error here, i'm using jdk1.4.2_07 with eclipse3.0.1...
please advice...
thanks!
For that java version I think you must make an extension of the
In java version 5 you have it ready made:Quote:
javax.print.attribute.EnumSyntax
Quote:
java.lang.Enum<E>
Try on eclipse3.1 and use java 5.0 jre for compiling. The you can declare enums and al the new features of Java Tiger release