[Solved] Why will my basic calculator not process after String input [duplicate]

[ad_1]

You can’t compare strings with == you need to use operator.equals()

For example instead of operator == "Subtract" use "Subtract".equals(operator)

7

[ad_2]

solved Why will my basic calculator not process after String input [duplicate]