On Sat, 20 Jul 2019, 02:00 Virendra singh Rajpurohit, <
virendrasing...@gmail.com> wrote:

> >
> > The code just needs to move the logic for checking if there are any
> values
> > (count > 0) into the getMean() method and return appropriately. This
> should
> > be added to the contract of Mean by putting into the Javadoc and adding a
> > test to ensure it does work.
> >
>
> Hi Alex,
> I'm sorry but I don't get what you mean by, "This should be added to the
> *contract* of Mean" here.
> Please elaborate.
> Thanks
>

The 'contract' is the specification of the behaviour of the code. Someone
should not have to read the code to know what it does. The javadoc should
contain all behaviour that the user can expect.


>
> Warm Regards
> --
> *Virendra Singh Rajpurohit*
>

Reply via email to