A
A
Andrey2019-03-19 15:38:08
Java
Andrey, 2019-03-19 15:38:08

Is it possible to pull off such a feint with ears in java?

I have a program written in java.
1) During the execution of this program, the list List is formed.
2) In the process of execution , a valid Java source containing the some(List) function comes to this program from the outside . The question is how to execute the some() function at runtime by passing the List list formed at step 1 into it. Is it possible. If possible, please poke your nose what and where to read on this topic

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-03-19
@poslannikD

This task can be solved using the Compiler API. You can see an example of usage in this answer .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question