Java and enum [Novice] : <p>I've got ome fail in java enums;</p>

<p>I'd like to have individual id number for specified enum created, but number seems to propagate to next enum object unfortunately.
Look at my case:</p>

<pre><code>enum type{ int i;}
int id=1;
type t1.i=id;
id=2;
type t2.i=id;
</code></pre>

<p>But t1 has got t2 id number, but I want to have different id's.</p>

<p>Is there any solution in this case ?</p>

<p>I inform that it's simplification of my case and I can't change enum type to class.</p>
