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 45 times
0
BenMorel
- 31,815
- 47
- 169
- 296
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
- 60,548
- 8
- 97
- 143