当前位置: 技术问答>java相关
~(取反)操作错误,求助!谢谢
来源: 互联网 发布时间:2015-10-21
本文导语: ~ 操作错误,求助!谢谢 byte b; b=radfile.readByte(); b=~b; error: test.java:184: possible loss of precision found : int required: byte b=~b; | ~b
~ 操作错误,求助!谢谢
byte b;
b=radfile.readByte();
b=~b;
error:
test.java:184: possible loss of precision
found : int
required: byte b=~b;
byte b;
b=radfile.readByte();
b=~b;
error:
test.java:184: possible loss of precision
found : int
required: byte b=~b;
|
~b