title: C stroull equivalent in Java
body: <p>I have a Objective C code,which I have to translate in Java,but I have a little problem with converting one line. In Objective C code I have : <code>UInt64 iz = strtoull(s,&amp;s1,16);</code>. I was searching over the internet abotu strtoull and I find this information for it :</p>
  
  <blockquote>
    <p>strtoul will convert a string to an unsigned long integer. An
    important feature of this function is the ability to accept data in
    various number bases and convert to decimal.</p>
    
    <p>The first argument must not contain a + or -. The second argument
    (char **endptr) seems to be a waste of space! If it is set to NULL,
    STRTOL seems to work its way down the string until it finds an invalid
    character and then stops. All valid chars read are then converted if
    the string starts with an invalid character the function returns ZERO
    (0).</p>
    
    <p>The Third argument (base) can have a value of 0 or 2-32.</p>
    
    <p>0 - strtol will attempt to pick the base. Only Dec, Oct Hex supported.
    2-31 - The base to use.</p>
  </blockquote>
  
  <p>I tried to find a way to do this in Java.As a made some researches I got this :</p>
  
  <pre><code>long l=Long.parseLong(md5Hash, 16);
  </code></pre>
  
  <p>And my question is,is parseLong equivalent to strtoull and can I use it for my application? If not can you suggest me what can I use?</p>
  
  <p>Thanks in advance!</p>