Write the recursive method, arrayDoubleUpper
, that accepts two arguments
and, when called by the provided arrayDoubleUpper(int[] nums)
method,
returns the same array of int
s where each int
in the returned array is
double the value of the original element.
You may assume that the array passed is not null.
You're challenge is to write tests for this problem described above.
Stuck? You may find these lessons helpful: