java enums but like public static final int?
<p>I want to have a list of constants like A, B, C related to integers 1, 2, 3</p>

<p>I know you can do like</p>

<pre><code>class Example {
    public static final int A = 1;
    etc...
}
</code></pre>

<p>and</p>

<pre><code>enum Example {
    A(1), ... etc;
    some initialization of an integer
}
</code></pre>

<p>But is there a way to do it like the public static final but as succinct as enums? When I use A and I really mean 1 I don't want to call Example.A.value or something like that.</p>
