week 4, exercise 82 (lottery)

328 views
Skip to first unread message

anagra...@gmail.com

unread,
Jan 24, 2017, 5:26:39 PM1/24/17
to mooc.fi
Hi,

I'm having problems with week 4 exercise 82  on course programming part 1_java.

My program runs fine but it's failing the text for some unknown reason (to me). The program is generating a 7 number list of lottery numbers but for some reason in the test it appears 14 elements?

I try to check the size of my list every step of the way but I can't seem to get it right.

Thank you for your help and comments


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

Ana Grau de la Herran

unread,
Jan 25, 2017, 4:03:31 AM1/25/17
to mooc.fi

I solved it. At the end I just needed to move the definition of the array from the constructor to the drawnumber method. That solved the issue with the test. :)
Reply all
Reply to author
Forward
0 new messages