Hi,
I'm having problems with week 9 exercise 20.
The last test that doesn't pass is giving:
Returned list should be empty with code
AverageSensor ka = new AverageSensor();
ka.addSensor( new ConstantSensor(3) );
ka.addSensor( new ConstantSensor(7) );
ka.readings();
The average sensor is on when all its sensors are on. In this case they are all on I would think.What do I miss?
The link to my work is here: PASTE TMC PASTEBIN LINK HERE
Best regards
Sander
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