My code can only process one function at a time

For example, on an input of * 2 3 it will output 6. However, on an input of * 2 3 + 1 2 - 42; it will still output 6 (only the first function). Is this normal?

Also, my code shows an error before running in eclipse IDE but still ran. Its not highlighted in the IDE. Could you please tell me what’s the error?

that you can change accordingly in this question the req was this only @sinuscoupon0s_4659768f9d9b587e