Hi,
I'm having problems with week 4 EXERCISE 79.4: MANY SUMS. I'm 89% already.
I'm getting this errors:
NumberStatistics1Test evenAndOdd
With input 2 4 1 6 -1 your program should print sum of even: 12, now it printed: sum of even: 0
and
NumberStatistics2Test ObjectsUsed
You should use NumberStaticstics objects to track the sum of input and also the sum of even and odd numbers in the input Objects should be created in the following orded: The first is used to track sum of all given numbers The second takes care of even numbers and the third the odd numbers. NOTE: do not add other values to objects that user entered Remember: number -1 which is used to stop the program shouldn't be included in the statistics! Error happened with user input 2 -1 more info: java.lang.AssertionError: Unexpected constructor call NumberStatistics(0): NumberStatistics(): expected: 3, actual: 0
Best regards
Supported languages are English and Finnish
Please use our build in TMC Pastebin when asking questions related to your code:
TMC Plugin has built-in code sharing feature.
In NetBeans, select TMC -> Send code to TMC pastebin. Copy the link you receive and paste it to your message.
You may use our web interface to share code snippets: http://paste.mooc.fi