Basic console-based Java program to compute the truth table of a given boolean expression.
Declaring a TruthTable object.
- TruthTable t = new TruthTable(String BOOLEAN_EXPRESSION, boolean EVALUATE_TRUTHS_FIRST)
| Operator | Input Symbol | Precedence (Higher number = Higher priority) |
|---|---|---|
| NOT | ~ | 5 |
| AND | & | 4 |
| OR | + | 3 |
| CONDITIONAL | > | 2 |
| BICONDITONAL | = | 1 |
First time programming in Java, so any feedback would be appreciated.