課程
/后端開發
/Java
/文件傳輸基礎——Java IO流
The operator && is undefined for the argument type(s) byte, int
2019-10-14
源自:文件傳輸基礎——Java IO流 1-1
正在回答
b & 0xff,這個是必須的嗎,就算我不加& 0xff,也到的結果也是一樣的。
System.out.print(Integer.toHexString(b & 0xff)+"? ");
好吧我粗心了,是這個符號&我寫成邏輯符號了
舉報
為您介紹IO流的使用,以及對象的序列化和反序列化的內容
3 回答老師的System.out.print(Integer.toHexString(buf[i]&0xff)+" ");句中為什么要加0xff?
4 回答11分22秒while((b=in.read())!=-1){System.out.print(integer.toHexString(b)+" ")}為什么b不進行&0xff? b為int型
4 回答單字節讀取時Integer.toHexString(b) 批量讀取時Integer.toHexString(buf[i]&0xff)
2 回答有朋友知道這句什么意思?System.out.print(Integer.toHexString(buf[i] & 0xff)+" "); 尤其是buf[i] & 0xff)這句.
2 回答System.out.print(dis.readUTF());報錯
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2020-02-04
b & 0xff,這個是必須的嗎,就算我不加& 0xff,也到的結果也是一樣的。
2019-10-14
System.out.print(Integer.toHexString(b & 0xff)+"? ");
好吧我粗心了,是這個符號&我寫成邏輯符號了