+ 1

Is there any java alternative of Python's eval or exec?

Or maybe a workaround?

1st Jan 2020, 3:32 AM
Anirudh Sharma
Anirudh Sharma - avatar
2 Respostas
0
You can use ScriptEngine class google it
1st Jan 2020, 5:29 AM
Abdol Hashimi
Abdol Hashimi - avatar
0
We can use ScriptEngine but it is removed in jdk 11. Better use some other engine like jython or GraalVM
1st Jan 2020, 1:58 PM
Anirudh Sharma
Anirudh Sharma - avatar