public class HexUtils { public static void main(String[] args) { byte []out = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, (byte)0x10, (byte)0x11, (byte)0x12, (byte)127, (byte)128, (byte)255 }; System.out.println( bytesToHexString((byte)10…