public void Text2() throws IOException{? ? long start = System.currentTimeMillis();? ? FileInputStream file = new FileInputStream("D:\\Text\\遍歷目錄\\FileTest.java");? ? byte[] b = new byte[20*1024];? ? int bytes = file.read(b,0,b.length);? ? int a = 1;? ? for(int i=0; i<bytes; i++){? ? ? if(b[i] <= 0xf)? ? ? ? System.out.print(0);? ? ? System.out.print(Integer.toHexString(b[i])+" ");? ? ? if(a++ % 10 == 0)? ? ? ?System.out.println();? ? }
不明白 數(shù)組B是怎么讀取到內(nèi)容的?
weibo_快樂is魏帆_0
2016-07-14 11:07:00