方法一:
public static String toHexString(byte[] byteArray) {
if (byteArray == null || byteArray.length < 1) {
throw new IllegalArgumentException("数组为空null");
}
final StringBuilder hexString = new StringBuilder();
for (int i = 0; i < byteArray.length; i++) {
//0~F前面补零