convert byte array from signed decimal to unsigned hexadecimal in java -


my requirement sign byte array.

i have byte[] [77,-22,-35,-118,107] , have convert unsigned 1 [77,234,221,138,107] after exploring on internet, think byte array below should constructed.

byte[] {0x004d,(byte)0x00ea,(byte)0x00dd,(byte)0x008a,0x006b} 

is right approach? if yes, how byte array conversion can done? please help?


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -