Possible Duplicate:
Executing java code given in a text file
using eval in Java
I have written a Java program, and I was wondering if I can do Java in a String. For example, let's say I have the following:
String s = "int i = 1;";
In the String above, I have a Java command in it. Can I execute the Command outside the String in my actual program?