摘要:
Java中String和byte[]数组之间的转换很多,转载一些代码作为日后使用参考。转载自:[http://hongyiqiye.iteye.com/blog/1028687]public static String stringToHexString(String strPart) { String hexString = ""; for (int i = 0; i < strPart.length(); i++) { int ch = (int) strPart.charAt(i); String strHex = Integer.toHexString(ch) 阅读全文