Question: Create a method called mystery 2 ( ) that will return the smallest number found in the while loop. do it in java Input: 4

Create a method called mystery2() that will return the smallest number found in the while loop. do it in java
Input: 4,3,2,1,0,2,3,-1
Return: 0
Input: 10,20,10,25,11,-1
Return: 10

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 Programming Questions!