title: Java parsing long from string
body: <p>I'm currently trying to parse some long values stored as Strings in java, the problem I have is this:</p>
  
  <pre><code>String test = "fffff8000261e000"
  long number = Long.parseLong(test, 16);
  </code></pre>
  
  <p>This throws a NumberFormatException:</p>
  
  <pre><code>java.lang.NumberFormatException: For input string: "fffff8000261e000"
  </code></pre>
  
  <p>However, if I knock the first 'f' off the string, it parses it fine.</p>
  
  <p>I'm guessing this is because the number is large and what I'd normally do is put an 'L' on the end of the long to fix that problem.  I can't however work out the best way of doing that when parsing a long from a string.</p>
  
  <p>Can anyone offer any advice?</p>
  
  <p>Thanks</p>