javac TestRunTime.javajava TestRunTime hostname // 执行“hostname”Linux命令即可看到输出public class TestRunTime { public static void main(String[] args) throws IOException, InterruptedException { String cmd = ""; if(args == null || args.length == 0){ System.out.println("请输入命... Read More
posted @ 2012-06-12 13:24 技术草根女 Views(14226) Comments(1) Diggs(2) Edit