I have an app that gets the content of an html file.
Lets say the text of the page is:
String[] arr = new String[] {"!","@","#"};
for (String str : arr) {
write(str);
}
Can I somehow compile this text and run the code within my app?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use Janino. It’s a java runtime in-memory compiler. Way easier than BCEL and the likes.
From the homepage:
“What is Janino?