You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
7--3
java.lang.ClassCastException: com.github.vatbub.mathevaluator.OperatorImplementations$SubtractOperator cannot be cast to com.github.vatbub.mathevaluator.Number
at com.github.vatbub.mathevaluator.MathExpression.evaluate(MathExpression.java:333)
at com.github.vatbub.mathevaluator.sample.Main.main(Main.java:45)
Please enter your math expression (Hit Ctrl+C or type 'exit' to quit the program) [default: exit]:
7++6
java.lang.ClassCastException: com.github.vatbub.mathevaluator.OperatorImplementations$AddOperator cannot be cast to com.github.vatbub.mathevaluator.Number
at com.github.vatbub.mathevaluator.MathExpression.evaluate(MathExpression.java:333)
at com.github.vatbub.mathevaluator.sample.Main.main(Main.java:45)
The text was updated successfully, but these errors were encountered:
Expected output:
7--3 = 7+3 = 10
Console output:
7--3
java.lang.ClassCastException: com.github.vatbub.mathevaluator.OperatorImplementations$SubtractOperator cannot be cast to com.github.vatbub.mathevaluator.Number
at com.github.vatbub.mathevaluator.MathExpression.evaluate(MathExpression.java:333)
at com.github.vatbub.mathevaluator.sample.Main.main(Main.java:45)
Please enter your math expression (Hit Ctrl+C or type 'exit' to quit the program) [default: exit]:
7++6
java.lang.ClassCastException: com.github.vatbub.mathevaluator.OperatorImplementations$AddOperator cannot be cast to com.github.vatbub.mathevaluator.Number
at com.github.vatbub.mathevaluator.MathExpression.evaluate(MathExpression.java:333)
at com.github.vatbub.mathevaluator.sample.Main.main(Main.java:45)
The text was updated successfully, but these errors were encountered: