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.

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.