import java.util.Scanner;
public class Calculator {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// read input
String expression = sc.nextLine();
// print the evaluated result
System.out.println(eval(expression));
}
public static int eval(String expression) {
// TODO complete this function
throw new UnsupportedOperationException();
}
}
Answer using the starter code provided, code in Java, will ratethumbs up if correct
(30 points) (This is a common interview question.) In this problem, we will be evaluating simple math expressions that contain numbers, +, *, (, and ). Specifically, you will write a
OR
OR