Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Input for failing test cases is not
"+"
. The error means that at some point, your oslution attempts to parse the string"+"
as a number.Your solution crashes for following inputs:
All stacktraces seem to originate from
MathEvaluator.getNumberOnTheRight(MathEvaluator.java:91)
, so you need to search for error in your solution somewhere around there.Hello.
I use the Java language.
The tests pass, but when I try to send the code, writes: "For input string:"+"." Then follows Stacktrace, in which: "Java.lang.numberformatexception: for input string:"+". Next, Stacktrace ...".
My calculator returns 0.0 with a transferred line "+". I don’t understand what needs to be returned to go these tests.
I think that the exception should be returned to such a line: "+". Since this is not a mathematical expression. I think the decision is the correctness of the exclusion. But I can’t fully understand in which form to return the exception.
Who can direct to the right thought, please write?