日期:2014-05-20 浏览次数:20852 次
for (int t = 0; t < 4; t++) {
if ((c = dis.read()) != -1) {
result = intToByteArray(c, 1);
temp = temp + getHex(result);
i++;
} else
return (0);
}
------解决方案--------------------
for (int t = 0; t < 4; t++) {
if ((c = dis.read()) != -1) {
result = intToByteArray(c, 1);
temp = temp + getHex(result);
i++;
} else
return (0);
}
------解决方案--------------------
这也没办法看出来为什么返回-1啊