It seems that Java is not configured for what I did earlier in C ++ (there is no big surprise here). I have a set of rules that are generated from another application (a series of if-then checks). These rules change from time to time, so in C ++ I would do the following:
double variableForRules=1;
bool condition=false;
#include "rules.out";
if(condition)
Essentially, the if-then-check in rules.out will use "variableForRules" (and several other variables) to decide whether the condition should be set to true. If it gets true after evaluating the rules, the program does something.
Is there a similar way to do this in Java? Or my only option is to have rules. Is it really a whole class that needs to be created, etc.?
Thank!
source
share