90 TeamandPlaysers

177 views
Skip to first unread message

caseysc...@gmail.com

unread,
Apr 5, 2015, 7:13:55 PM4/5/15
to moo...@googlegroups.com
Hi,

I'm having problems with week 5 exercise 90.

I'm getting 75% complete, but it's saying that I'm not printing the players added to the team, but I am printing them fine in my test runs, so I'm not sure what's up?

The link to my work is here: PASTE TMC PASTEBIN LINK HERE



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

Joni

unread,
Apr 7, 2015, 3:27:12 AM4/7/15
to moo...@googlegroups.com
Hi,

It seems that Player's toString method is not as it should be. In the assingment it doesn't start with "Player: ".

Class Team addPlayer method's if condition seems wrong. And the assignment says that by default the maximum number of players should be set to 16. So maxSize should be initialized to the right value, now it's zero.

BR
Joni
Reply all
Reply to author
Forward
0 new messages