功能演示:打开计算器十次
import java.io.IOException;
/**
*
* @title: 打开计算器十次
* @author: wll
* @since: 2021-11-16 16:53:47
*/
public class CallCalc {
public static void main(String[] args) throws IOException, InterruptedException {
for (int i = 0; i < 10; i++) {
Thread.sleep(1000);
Runtime.getRuntime().exec("calc.exe");
}
}
}