Java Program - Logical Expression Evaluator
Input:
Rule - (Hello AND World) OR ((Hello OR Welcome) AND CONTAINS(HI))
Sentence to evaluate based on the given rule
Hello World
Output
TRUE (Given sentence satisfied the given rule)
Input:
Rule - (Hello AND World) OR ((Hello OR Welcome) AND CONTAINS(HI))
Sentence to evaluate based on the given rule
Hello World
Output
TRUE (Given sentence satisfied the given rule)