Just would like to know if I can compile a java file from a java file.
import java.lang.*;
public class Driver{
public static void main (String []args){
boolean results = Compiler.compileClasses("Test.java");
System.out.println(results);
}
}
Like the code above is it possible? Cause some of my friends says that is not possible to do so.
Or is it a more complex process to get a java file to compile another java file?
Thanks!

