test 3 fail

80 views
Skip to first unread message

asusga...@googlemail.com

unread,
Dec 9, 2015, 9:37:34 AM12/9/15
to mooc.fi
Hi,

I'm having problems with week 5 exercise 92.

First I want to thank to the creator(s) of this course! It's fantastic and I see the amount of work they put into it.

now to my question - the class my date passes all tests except test3 with the message
Add class MyDate method public int differenceInYears(MyDate compared)

but the method is implemented.

any help is appreciated.
ovg

*Explain your problem here in English or Finnish*


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

asusga...@googlemail.com

unread,
Dec 9, 2015, 10:46:59 AM12/9/15
to mooc.fi, asusga...@googlemail.com

I solved this by removing the recursive call and writing the ifs again.

gakuke...@gmail.com

unread,
Oct 29, 2016, 12:01:14 AM10/29/16
to mooc.fi, asusga...@googlemail.com
yeah I had a recursive call as well, then removing and flipping the if statements worked. Strange bug. you'd think that the efficiency would be encouraged!
Reply all
Reply to author
Forward
0 new messages