I have this little code:
public static void main(String[] args) {
byte[] bytesArray = {7,34};
BigInteger bytesTointeger= new BigInteger(bytesArray);
System.out.println(bytesTointeger);
}
Output: 1826
My question is what happened, how the byte array {7.34} was converted to that number 1826, what is the operation that caused this result? for example, how to convert it manually
Zizoo source
share