标签:就是 ++ 而在 alt str 负数 cas class 接收
String mac_no_ff = "";
for (int i = 0; i < 6; i++) {
mac += Integer.toHexString(card[i] & 0xff).toUpperCase();
mac_no_ff += Integer.toHexString(card[i]).toUpperCase();
}
System.out.println(mac);
System.out.println(mac_no_ff);
byte转换为十六进制时,Integer.toHexString需要&FF的原因
标签:就是 ++ 而在 alt str 负数 cas class 接收
原文地址:https://www.cnblogs.com/king0207/p/14338322.html