?? null.java
字號:
import java.io.*;
class cw3b
{
public static void main(String args[])
{
if(args.length>=1)
{
try{
BufferedReader inFile=new BufferedReader(new FileReader(args[0]));
String line;
int count=0;
while((line=inFile.readLine())!=null||(line.equalsIgnoreCase("end"))!=true)
{
System.out.println(line);
count++;
}
System.out.println("TPL finished Ok. ["+(count+1)+"lines processed]");
inFile.close();
}catch(IOException e){
System.out.println("Unexpected end of file: no End");
}
}
else
System.err.println("no command line args");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -