String hexStr = "3439393930";byte[] bytes = new byte[5];for (int i = 0;i < 5; i++) { bytes[i] = (byte) Integer.valueOf(hexStr.substring(i*2,(i+1)*2),16).intValue();}System.out.printf("获取的值:"+new String(bytes));