将16进制的数据转为数组and数组转为16进制

//16进制的数据转为数组
public static byte[] StringToBytes(String data){
String hexString=data.toUpperCase().trim();
if (hexString.length()%2!=0) {
return null;
}
byte[] retData=new byte[hexString.length()/2];
for(int i=0;i

猜你喜欢

转载自blog.csdn.net/hh19900902/article/details/51982180
今日推荐