X1034: Generics - Searching a Generic List

The following method takes in a list of objects, but the type of objects are specified by the generic type parameter T. It also takes a separate value of the same type. Write a for loop that will return the first index of 'value' in the list. If no such value exists, the method should return -1.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.