I want to split each of two chars in string and convert it to hex byte array representation, i am just lost how to do this.
in string a= hex a which is 10 in decimal in string b= hex b which is 11 in decimal
String toConvert = "abbbbbbbbbbbbbbbbbbbbbbc";
byte[] output = new byte[12];
Input
ab bb bb bb bb bb bb bb bb bb bb bc
output
[-85, -69, -69, -69, -69, -69, -69, -69, -69, -69, -69, -68]
in string a= hex a which is 10 in decimal in string b= hex b which is 11 in decimalYou mean inString toConvert? What a terrible example! BetterString toConvert = "0344A7DF";. And you will not convert to hex but decode from hex representation.