i have a byte array its value taken from debugger
0 = -124
1 = 56
2 = 56
3 = 65
then convert to hex
StringBuilder res1 = new StringBuilder();
for (byte b : Bytes) {
res1.append(String.format("%02X-", b));
}
i get result 84-38-38-41
,i want to revert it back to same previous value like
if i have 84-38-38-41 ,how can i get the bytearray with the value
0 = -124
1 = 56
2 = 56
3 = 65
means hex string to decimal array