Declare and implement a function called arrayMax
.
It should accept a nullable DoubleArray
as its single argument, and return the maximum value stored in the array.
If the array is empty or null
, you should return 0.0.
You're challenge is to write tests for this problem described above.
Stuck? You may find these lessons helpful: