亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

為什么我的Eclipse中 System.out.print(Integer.toHexString(b && 0xff)+" ");會報錯

http://img1.sycdn.imooc.com//5da483250001415a11090147.jpg

The operator && is undefined for the argument type(s) byte, int

正在回答

2 回答

b & 0xff,這個是必須的嗎,就算我不加& 0xff,也到的結果也是一樣的。

0 回復 有任何疑惑可以回復我~

System.out.print(Integer.toHexString(b & 0xff)+"? ");

好吧我粗心了,是這個符號&我寫成邏輯符號了

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

為什么我的Eclipse中 System.out.print(Integer.toHexString(b && 0xff)+" ");會報錯

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號