You could do something like this. This is over kill for something as simple as an int, but if the static variable had needed some iteration (for example) to compute its value, then a static block would be a good place to put it.
Carey Brown wrote:. . . a static block would be a good place to put it. . .
It might be a good idea to reserve static fields for constants, but I agree that a static initialiser is probably the best way to initialise a static field requiring anything more complicated than initialisation on the same line as its declaration. The alternativve would be to use a method to initialise it.