0

For example Awesome.run("System."+"exit();"); Is there any class or lib which I could use for something like this? It would be very helpful...

BenMorel
  • 34,448
  • 50
  • 182
  • 322
  • 2
    Assuming you don't only need to run something like the above, you can use reflection: http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string – Cristina_eGold May 19 '13 at 13:46

1 Answers1

1

Read the Java Reflection API documentation and tutorials. Basically, it helps to execute programming statements at Runtime.

Konstantin Yovkov
  • 62,134
  • 8
  • 100
  • 147