내 풀이
class Solution {
public int solution(String ineq, String eq, int n, int m) {
String aa = ineq+eq;
boolean result = false;
switch (aa){
case "<=":
result = n <= m;
break;
case ">=":
result = n >= m;
break;
case "<!":
result = n < m;
break;
case ">!":
result = n > m;
break;
}
int newa = result == true ? 1 : 0;
return newa;
}
}