?? buffereddemo.java
字號(hào):
//BufferedInputstream Demo
import java.io.*;
import java.util.*;
public class BufferedDemo {
public static void main(String[] args) {
InputStream is;
int ch;
System.out.println("Start! " + new Date());
try {
File myfile = new File(args[0]);
is = new BufferedInputStream(new FileInputStream(myfile));
while ((ch=is.read()) != -1) {
// read entire file
}
}
catch (IOException io) {
System.out.println(io);
System.exit(-1);
}
System.out.println("Stop! " + new Date());
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -