Validate Boolean Query - java
- by JavaUser
hi,
I need the java code snippet for the below logic:
Following is a string and I need to validate the string based on the below condition :
"100 or 200 and 345 not 550 " - Valid string
"abc or 200 and 345 SAME ** 550 " - Not a Valid String
1 . the operands(eg 100,200 ..) should be positive numbers
2 . the operator should be and/or/not
Thx