Question: Create a program named equation.java that uses two stacks (Value and Operator) to evaluate a simple equation. Example equation: (2+3)*(8-4)*(5-3). I need help finishing this
Create a program named equation.java that uses two stacks (Value and Operator) to evaluate a simple equation. Example equation: (2+3)*(8-4)*(5-3). I need help finishing this program starting on line 32.
| *Equation.java Console 1 package equation; 2 import java.util.*; 3 public class Equation 4 5e public static void main(String L] args) //ask user to enter an equation String EQ-"(2+3) System.out.println("Solved:"Solve(EQ)); 8 10 11 12 13 14 15 16 17 18 19 20 21 static int Solve(String EQ) stack
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
