为了账号安全,请及时绑定邮箱和手机立即绑定

不明白 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 关注
  • 1372 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号