摘要: 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) 阅读全文
posted @ 2011-11-18 16:16 MMJX 阅读(1012) 评论(0) 推荐(0) 编辑