I was wondering if it is possible to convert conditional statements from a text file directly into code. For example, if in a text file I had:
if(a.getId()==1){System.out.println("YES");}
Is it possible to directly call this into a program, for example:
for(Node a : nodes){
>>> The statement from file <<<
}
Hope this makes sense, and thanks in advance. :)
source
share