how do I put hexadecimal values into a byte array??
I did the following
private byte[] buffer=new byte[] {
(byte)0xC8, 00, 0x09, 0x4A, 32, 0x4D, 45, 76, 33, 0x2E, 30, 32, 00, 05, 00, 00
};
but when i print them using System.out.print(...), the output is
-56 0 9 74 32 77 45 76 33 46 32 0 5 0 0
we can see that C8==200 in decimal but it prints -56. Could anyone suggest me where I am going wrong?
Thank you.