public String compile(String srcFiles[]){
  StringWriter err=new StringWriter();
  PrintWriter errPrinter=new PrintWriter(err);
  String args[]=buildJavacArgs(srcFiles);
  int resultCode=Main.compile(args,errPrinter);
  errPrinter.close();
  return (resultCode == 0) ? null : err.toString();
}

public String compile ( String srcFiles [ ] ) { StringWriter err = new StringWriter ( ) ; PrintWriter errPrinter = new PrintWriter ( err ) ; String args [ ] = buildJavacArgs ( srcFiles ) ; int resultCode = Main . compile ( args , errPrinter ) ; errPrinter . close ( ) ; return ( resultCode == 0 ) ? null : err . toString ( ) ; }
compile the given source files .
