【发布时间】:2011-07-12 21:54:08
【问题描述】:
运行进程时,如何将其输出到System.out 并将其输入到System.in:
Process p = Runtime.getRuntime().exec("cubc.exe");
// do something with p.getOutputStream())
编辑:我想我解释错了;我不想输入到程序中,我希望用户输入到程序中,我不想读取输出,我希望用户读取输出。
【问题讨论】:
标签: java inputstream outputstream