use the Math class for finding out the min,pass a List of numbers to the userdefined function,recursively call the function.