I'm sorry, we haven't gotten to parsing or String.split(). That is over my head.
Type: Posts; User: catisch
I'm sorry, we haven't gotten to parsing or String.split(). That is over my head.
Enter a binary arithmetic expression, with spaces between operands and operator.
3 + 4
Exception in thread "main" java.util.InputMismatchException
at java.util.Scanner.throwFor(Unknown Source)...
Ok, I changed it to where I thought the code would read the operator that the user is supposed to type in, but it is still crashing?
import java.util.Scanner;
public class...
I have to create a five-function calculator. The input to my program will be a binary arithmetic expression, with the operator separated from the operands by a space like 24 * 4. The output will be...