package com.ldr.common;
import java.util.HexFormat;
public class TTTTT {
static final HexFormat FORMAT = HexFormat.of();
public static void main(String[] args) {
byte[] bytes = { 0x4a, 0x6f, 0x68, 0x6e };
String hex = FORMAT.formatHex(bytes);
System.out.println(hex);
byte[] bytes1 = FORMAT.parseHex(hex);
System.out.println(FORMAT.formatHex(bytes1));
}
}