Write an application that can take a basic arithmetic expression and returns the value. If the expression is not valid, it produces an error.
$ java -jar arithmetic_expression "(1+4)*3 + 5 - 7 / 14"
19.5
$
Write an application that can take a basic arithmetic expression and returns the value. If the expression is not valid, it produces an error.
$ java -jar arithmetic_expression "(1+4)*3 + 5 - 7 / 14"
19.5
$