1. Write a little console application taking an input file and
outputing the result to the console.Typical usage : java -jar calc.jar input.txtInput file format :
expression : number [ operator number ] [ expression ]
operator : ( + | - | * | / )
number : ( 0|1|2|3|4|5|6|7|8|9 ) numberSample input file :
2 + 3 * 2 / 5 - 3
Sample console output :
2 + 3 * 2 / 5 - 3 = 0.2
Res : Operators “*” and “/” have priority on “+” and “-”.