Equivalent of BigInteger value of C++ long long
<p>I am migrating some code base from C++ to Java where I encountered a <code>long long</code> value in the C++ code which i need to migrate. </p>

<p>On some research i found out I should be using <code>BigInteger</code> to represent the <code>long long</code> of C++. </p>

<p>I looked at couple of examples and found out the syntax to be : </p>

<pre><code>static BigInteger flag1 = BigInteger.valueOf(0x00000001); 
</code></pre>

<p>Here i noticed the value used in the argument for BigInteger.valueOf is not the same as original <code>long long</code> value which was <code>0x0000000000000001LL</code></p>

<p>Original value had 16 digits and this one had 8 digits and does not include <code>LL</code> suffix at the end. Can someone explain what is going on ?</p>

<p>Also If they can suggest the value of <code>0x0000000000000200LL</code> in similar terms. </p>