I want to get a line of Java code from user and execute it in Android. For example:

String strExecutable = " int var; var = 4 + 3"
Object obj = aLibrary.eval(strExecutable);

It is not java script and I want to run a java code.

Is it possible? If yes how?

I have studied links like this. But they are questions about JVM not Android Dalvik.

Edit
Report