Validate a statment from string in JAVA
Posted
by Adnan
on Stack Overflow
See other posts from Stack Overflow
or by Adnan
Published on 2010-06-03T13:33:40Z
Indexed on
2010/06/03
13:34 UTC
Read the original article
Hit count: 164
java
I have a string;
String allIn = "(50 > 100) AND (85< 100)";
Now I need to evaluate if the conditions inside are TRUE or FALSE, how can I do it?
In real the string will be a value from a field in my DB, where I will substitute different values and they will form a string as shown above.
© Stack Overflow or respective owner