JAVA在线编译器模拟 (三)

2014-11-24 08:20:18 · 作者: · 浏览: 2
Reader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
String content = null;www.2cto.com
try {
while((content = br.readLine()) != null){
System.out.println(content);//如果想把结果输出到页面,直接定义变量就行
}
} catch (IOException e) {
e.printStackTrace();
}
}

}

}

作者:mzlqh