title: Parsing HEX result in different values
body: <p>I am trying to migrate (from javascript to java) a function to decode hex values.
  The problem is when I try to convert &quot;5CDF&quot; to Int.</p>
  <p>JAVASCRIPT</p>
  <pre><code>ParseInt(&quot;5CDF&quot;) // Return 5
  </code></pre>
  <p>JAVA</p>
  <pre><code>Integer.parseInt(&quot;5CDF&quot;) // Exception
  Integer.parseInt(&quot;5CDF&quot;,16) // Return 23775
  </code></pre>
  <p>How should I do to convert &quot;5CDF&quot; to 5 in Java?</p>