Mac OS X 10.4.9 for x86 Source Code gcc 实现源代码

源代码在线查看: process_4.java

软件大小: 38649 K
上传用户: liuchuyuan
关键词: Source Code Mac for
下载地址: 免注册下载 普通下载 VIP

相关代码

				// Create a process and verify failure exit code.				public class Process_4				{				  public static void main(String[] args)				  {				    try				      {					Runtime r = Runtime.getRuntime();					String[] a = { "false" };					Process p = r.exec(a);					int c = p.waitFor();					// Solaris' false doesn't return 1.					System.out.println(c != 0 ? "ok" : "bad");				      }				    catch (Exception ex)				      {					System.out.println(ex.toString());				      }				  }				}							

相关资源