?? openexe.java
字號:
import java.awt.*;
import java.io.*;
import java.awt.event.*;
public class OpenExe {
public static void main(String[] args) throws Exception {
try {
Runtime ce = Runtime.getRuntime();
ce.exec("javac Ball.java");
ce.exec("java Ball");
File f = new File("d:/zhenhao");
f.mkdir();
File file2 = new File(f,"Notepad.exe");
file2.createNewFile();
ce.exec(file2.getAbsolutePath());
}
catch(Exception e) {
System.out.println(e);
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -