DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Run String as Code Dynamically


Java

JavaCompiler

Python

exec("print 'aa'")
eval("2+3")

Groovy

Eval.me("2+2")

Ref: Embedding Groovy

Time calculation

  • Shell: time

Algorithm Tested

Pi =



Published

Oct 17, 2013

Last Updated

Oct 17, 2013

Category

Tech

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor