while语句中进行写操作时,c是int型,为什么不用进行类型转换?
while语句中进行写操作时,c是int型,为什么不用进行类型转换?
int c ;
while((c = in.read())!=-1){
out.write(c);
out.flush();
}
in.close();
out.close();while语句中进行写操作时,c是int型,为什么不用进行类型转换?
int c ;
while((c = in.read())!=-1){
out.write(c);
out.flush();
}
in.close();
out.close();2014-11-27
http://www.imooc.com/qadetail/118057
read()返回的不是字节数量,是字节值,看API,误人子弟啊
举报