(String expression, int start, int end)
| 72 | } |
| 73 | |
| 74 | public static boolean evaluate(String expression, int start, int end) { |
| 75 | String result = reduce(expression, start, end); |
| 76 | if (result == "0") { |
| 77 | return false; |
| 78 | } else { |
| 79 | return true; |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | public static boolean isOperator(char c) { |
| 84 | switch (c) { |