实现这些代码的底层代码,看不懂。
package org.newer.client;
import java.io.DataInputStream;
import java.io.IOException;
//private
public class ExcepDemo {
public static void main(String[] argv){
try {
ExcepDemo e = new ExcepDemo();
e.exMethod();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public void exMethod(){
byte[] bytes= new byte[]{1,3,4,6,5,8,9};
DataInputStream dis= new DataInputStream(System.in);
try {
System.out.println(dis.read(bytes));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}