private static byte[]theTestText ={0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,(byte) 0x88,(byte) 0x99,(byte) 0xAA,(byte) 0xBB,(byte) 0xCC,(byte) 0xDD,(byte) 0xEE,(byte) 0xFF};
String str= new String(theTestText); // converted the byte array to string
char ch = str.charAt(8); // extracting a specific character from string
I want to obtain the hex value from the character 'ch' as defined in the original byte array i.e. 0x88. Is there any way to get that?