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)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 Value = new Stack(); Stack Operatornew Stack); for (int i-0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!