Question: Write a method called getIndexOfSmallest() which takes in a List of Integer and a single int index. Rather than finding the smallest int in the

Write a method called getIndexOfSmallest() which takes in a List of Integer and a single int index. Rather than finding the smallest int in the list, this method finds the smallest int starting at index. In other words, we ignore all the numbers before index. Example inputs: [4, 2, 1, 5, 9, 8] and 0 --> index 2 [4, 2, 1, 5, 9, 8] and 1 --> index 2 [4, 2, 1, 5, 9, 8] and 2 --> index 2 [4, 2, 1, 5, 9, 8] and 3 --> index 3

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!