finderwithargs.java
来自「That is some example about GUI. It is ve」· Java 代码 · 共 24 行
JAVA
24 行
import java.io.*;
public class FinderWithArgs {
public static void main(String[] args){
if(args.length != 2) {
System.err.println("Error: 2 arguments are required.");
System.exit(2);
}
else {
FinderWithArgs aFind = new FinderWithArgs();
aFind.doSearch(args[0], args[1]);
}
}
private void doSearch(String fileName, String wanted) {
// search the file as before...
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?