How java execute StringCode
such as;int testInt;String testStr = "testInt = 55";eval(testStr); ?
[96 byte] By [
dingmja] at [2007-9-27 7:20:58]

You can't. Not like that.You could, in a program, create a file with a class and that code, then compile it and use reflection to load and run it.There are also some third party libraries that allow you load something that does something like this (JSP I think) in java.