posted 24 years ago
It's not just the static that counts, but also the final.
static = class/non-instance member/variable
final = its value cannot be changed except....
[non static] final means you cannot change the value except within the constructors
static final means you cannot change the value (including within constructors) except within the static initialization block which is executed when the class is loaded.
So if you want to make a static final variable then
you initialize it either along with the declaration or within
the static block.
Add the following after the declaration
Hope this would help