How can i execute java code from my java program? Is there a framework I could use to programatically execute them? please help, thanks.
My java class
public class test {
    public static compute(int one, int two){
         // compute goes here
   }
    public static void main(String[] args) {
        //read from file
        //execute the commands
    }
}
my text file : contains java code fragments doesn't consists the whole java file.
   System.out.println("Start of my program");
@do("compute my two int"){
  val = compute(15,25);
  System.out.println(val);
}