public final int exec(String[] args) throws Exception {
  final Runtime r=Runtime.getRuntime();
  final Process process=r.exec(args);
  return processOutput(process);
}

public final int exec ( String [ ] args ) throws Exception { final Runtime r = Runtime . getRuntime ( ) ; final Process process = r . exec ( args ) ; return processOutput ( process ) ; }
runs the external program and captures the output in memory for later retrieval .
