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...
Asked
Active
Viewed 46 times
0

BenMorel
- 34,448
- 50
- 182
- 322

user2398960
- 5
- 2
-
2Assuming 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 Answers
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