Implement utility methods in a class ArrayUtil
that:
int
and double
.int
and double
. Return 0 if the array is empty.int
and double
. Return the appropriate MIN_VALUE
or MAX_VALUE
if the array is empty.int
or double
from a Scanner
.Look at the unit test for details.