title: Adding hexadecimal numbers with a truncated result
body: <p>I need help in java regarding memory location addition.</p>
  
  <p>If current memory location is at <code>fffffff8</code> and there is an offset of <code>+10</code>, in java i would get the value of <code>100000008</code> however if i want the value to be <code>0000 0000 0000 0008</code> instead of <code>0000 0001 0000 0008</code>, how should i go about doing it and is my current code that is doing this calculation optimized?</p>
  
  <p>Currently the code i am using is as followed:</p>
  
  <pre><code>long a = Long.parseLong("fffffff8",16) + Long.parseLong("10",16);
  String x = Long.toHexString(a);
  </code></pre>