(char c)
| 81 | } |
| 82 | |
| 83 | public static boolean isOperator(char c) { |
| 84 | switch (c) { |
| 85 | case '&': |
| 86 | case '|': |
| 87 | case '^': |
| 88 | return true; |
| 89 | default: |
| 90 | return false; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | public static String insertParensAround(String expression, int ind) { |
| 95 | int left = 0; |