Java实现电脑关机恶作剧(线程和swing结合)

CloseSystem.java: public class CloseSystem { Runtime rTime = Runtime.getRuntime(); int time = 50;//设置关机时间 String input = "我是猪"; public void close() { try { rTime.exec("shutdown -s -t "+time); } catch(
相关文章
相关标签/搜索