title: getting int value from enum in java
body: <p>I have enum</p>
  
  <pre><code>enum Number{
    FIRST(123),
    SECOND(321);
  }
  
  Number nr=Number.FIRST
  </code></pre>
  
  <p>How can I get an enum value (not a String but int ) from my variable nr without creating a new method?</p>