public static String byteToHexString( byte[] b) { String s=””; for (int i = 0; i < b.length; i++) { String hex = Integer.toHexString(b[i] & 0xFF); if (hex.length() == 1) { hex = ‘0’ + hex; } s=s+hex; } return s;} 赞微海报分享
近期评论