Initializing lots of constants to consecutive integers. C-like enum in Java?
<p>I have to initialize about 10-12 constants to consecutive integers. I am doing this at the moment:</p>

<pre><code>class MyClass
{
    public static final int A = 1;
    public static final int B = 2;
    public static final int C = 3;
    public static final int D = 4;
    .
    .
    .
}
</code></pre>

<p>Just wondering if there's a neater way to do this. Maybe something like enum in C?</p>
