MCPcopy Index your code
hub / github.com/careercup/ctci / isOperator

Method isOperator

java/Chapter 9/Question9_11/Question.java:83–92  ·  view source on GitHub ↗
(char c)

Source from the content-addressed store, hash-verified

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;

Callers 1

insertParensAroundMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected