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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -