为了账号安全,请及时绑定邮箱和手机立即绑定

输入输出流?

输入输出流?

脱离狼群的熊 2017-10-31 21:46:03
while(bytes = in.read(buf,0,buf.length) != -1){for(int i = 0;i < bytes; i++)Stystem.out.print(Integer.toHexString(buf[i])&0xff+" ");}while(bytes = in.read(buf,0,buf.length) != -1){for(int i = 0;i < buf.length; i++)Stystem.out.print(Integer.toHexString(buf[i])&0xff+" ");}这两个有什么区别,为什么我运行出来结果不一样!!!
查看完整描述

1 回答

?
MarlboroKay

TA贡献189条经验 获得超236个赞

第一种有可能是没有读完的情况。

查看完整回答
反对 回复 2017-11-01
  • 1 回答
  • 0 关注
  • 1297 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信