Sunday, September 15, 2019

Program to evaluate expression with logical operators

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)