I need to evaluate " (num1+ num2) < num 3
" expression in boolean format
Example :
String str = "(24+3) < 4";
Have to evaluate above str
to Boolean
if true
or false
and then use the final Boolean
value inside if ()
condition.
I do not want to extract individual characters, convert into int
and then keep evaluating each sub expressions.