[ACCEPTED]-Initialize unsigned byte array using hex number-unsigned
Accepted answer
You have to store 0x80
in byte like this :
final byte assoc_resp_msg_int[] = new byte[] {
(byte)0xe3, 0x00, //APDU CHOICE Type(AareApdu)
0x00, 0x2c, //CHOICE.length = 44
0x00, 0x00, //result=accept
0x50, 0x79, //data-proto-id = 20601
0x00, 0x26,
(byte)0x80,
...
}
System.out.println(assoc_resp_msg_int[10]&0xFF);
//128
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.