Validate Boolean Query - java
<p>I need the java code snippet for the below logic:</p>

<p>Following is a string and I need to validate the string based on the below condition :</p>

<p>"<strong>100</strong> or <strong>200</strong> and <strong>345</strong> not <strong>550</strong> " - Valid string </p>

<p>"<strong>abc</strong> or <strong>200</strong> and <strong>345</strong> SAME <em>*</em>* 550 " - Not a Valid String</p>

<p>1 . the operands(eg 100,200 ..) should be positive numbers
2 . the operator should be and/or/not </p>

<p>Thx</p>
