(Solved):*…

 

Question

operatorStack); } // Push the + or – operator into the operator stack operatorStack.push(token.charAt(0)); } else if (token.charAt(0) == ‘*’ || token.charAt(0) == ‘/’) { // Process all *

 

EXPERT ANSWER

/ in the top of the operator stack while (!operatorStack.isEmpty() && (operatorStack.peek() == ‘*’ || operatorStack.peek() == ‘/’)) { processAnOperator(operandStack

We are so grateful for the pleasure of serving you and hope we met your expectations. Thank you. Manvila.

Scroll to top