0

Is there any framework or sample java code to evaluate an arithmatic / logical / bitwise expression , which will provide the value for input parameters , to make the condition pass.

For example , In the below sample arithmatic condition ,
if the values a=7 and b=6 are passed , the condition will get passed and we'll get "Condition is passed!!!" printed in console.

if( (a>b) && (a<10) && (b>5))
      {
        System.out.println("Condition is passed!!!");
      }

Is there any framework which will give me the value of a and b , taking the expression as input.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by anthasuresha
-1

Sounds like high school algebra. Solving an equation with 2 unknowns.
A way would be a brute force nested looping program.

0

Sounds like high school algebra. Solving an equation with 2 unknowns.
A way would be a brute force nested looping program.

Thanks for the reply.
But the issue is when we have a bigger number count. for eg
if(a>2384762834 && b>9874969459045)
In this case , it will require more time.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.