Skip to content

Instantly share code, notes, and snippets.

import java.util.Stack;
public class InfixEvaluation {
public int evaluate(String expression){
//Stack for Numbers
Stack<Integer> numbers = new Stack<>();
//Stack for operators
Stack<Character> operations = new Stack<>();
for(int i=0; i<expression.length();i++) {