title: Hex integer to decimal integer in Java
body: <p>I need to parse hex integer to decimal integer.</p>
  
  <p>For example, Hex: <em>02 01</em> (<em>513</em> in decimal mode) should represent <em>201</em>.
  In code it could pass:</p>
  
  <pre><code>Assert.assertEquals(201, parse(0x201));
  </code></pre>
  
  <p>How can I implement the method parse()? Thanks!</p>