Can you please answer this doubt related to java..
I would like to store MAX_VALUE of unsigned long (i.e 2(pow)64 -1) a n byte array, and then read byte[] array to get back this MAX_VALUE.
As all data types are signed, so would like to know how to store 0xFF (each byte) value in each index of byte[] array i.e ignoring the signed bit. Please suggest on how to do this.
Thanks.
MAX_VALUEof unsignedlong(i.e 2(pow)64 -1) a n byte array" Ok:byte[] b = {-1, -1, -1, -1, -1, -1, -1, -1}