title: Parsing integer strings in Java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5153811/how-to-convert-a-hexadecimal-string-to-long-in-java">How to convert a hexadecimal string to long in java?</a>  </p>
  </blockquote>
  
  
  
  <p>I know that Java can't handle this:</p>
  
  <pre><code>Integer.parseInt("0x64")
  </code></pre>
  
  <p>Instead you have to do this:</p>
  
  <pre><code>Integer.parseInt("64", 16)
  </code></pre>
  
  <p>Is there something built into Java that can automatically parse integer strings for me using the standard prefixes for hex, octal, and lack of prefix for decimal (so that I don't have to strip off the prefix and explicitly set the base)?</p>