i cant get my calculator to work
问题 i want to input a int to get first number then use a string to get the operator and another int for the second number. user should input some thing like 10+20. but as soon as i enter the "+" then i get an error why? cuz it works if i manually add the values into the sum.calc(); myself like sum.calc(12, "+", 24); then it works ill get 36 PART 1: import java.util.Scanner; public static void main(String[] args) { math sum = new math(); Scanner input = new Scanner(System.in); double a = input