Question: Confused on how to do this question; answer is meant to be in java. Any help would be appreciated. Thank you! List Smallest Number Find

 Confused on how to do this question; answer is meant to

Confused on how to do this question; answer is meant to be in java. Any help would be appreciated. Thank you!

List Smallest Number Find Smallest Number Problem Problem: Write a method that will find the smallest number in the list. When searching for the smallest value, set your starting variable to a really large value. The code should work regardless of the parameter passed in. Data: A list containing 0 or more values. The list will not point at null. Output: Return the smallest number in the list. Sample Data 1, 2, 3, 1, 1 4, 15, 7, 73, 7 2, 2, 2 -11, -12, -3, 7, -134 Sample Output 1 4 2 -134

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!