in Java – simple code please all inmain method
Calculator thing
input inut is the token that going to like something (2 + 4 / 6* 2 – (10+ (2-5) +10) * 2)
1. While there are still tokens to be read in,
1.1 Get the next token.
1.2 If the token is:
1.2.1 A number: push it onto thevalue stack.
1.2.2 A left parenthesis: push itonto the operator stack.
1.2.3 A right parenthesis:
1. While the thing ontop of the operator stack is not a
leftparenthesis,
1. Pop the operator from the operator stack.
2. Pop the value stack twice, getting two operands.
3. Apply the operator
PayPal Gateway not configured
PayPal Gateway not configured