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

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

不明白 b<=0xF 的意思

不明白 b<=0xF 的意思

weibo_快樂is魏帆_0 2016-07-14 10:44:43
import java.io.*;public class Text{? public static void main(String[] args){? ? try{? ? ? FileInputStream file = new FileInputStream("D:\\Text\\遍歷目錄\\FileTest.java");? ? ? int b;? ? ? int a = 1;? ? ? while((b=(int)file.read())!= -1){? ? ? ? if( b <= 0xf){? ? ? ? ?System.out.print(0);? ? ? ? }? ? ? ? System.out.print(Integer.toHexString(b)+" ?");? ? ? ? if(a++ % 10 == 0)? ? ? ? ? System.out.println();? ? ? }? ? ? file.close();? ? ?}catch(IOException e){? ? ? ? e.printStackTrace();? ? ?}? ? ??? }}
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 1373 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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