Question: Write a java program under the command line that reads from standard input an operation in NPN. You can assume there is a space between
Write a java program under the command line that reads from standard input an operation in NPN.
You can assume there is a space between every operator and number.
Your program should be able to correctly handle the operators +,-,*,/. Every number will be a 32 bit non-negative integer.
Be careful that your program recognises precisely the three characters above (plus sign, minus sign, and the lowercase letter x, respectively).
You may NOT use any Java standard library class or method other than for input/output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
