X1035: Find Second Index

The following method takes in a list of strings and a string value. Implement the method so that it will return the index of the second occurrence of value in the list. If the value appears fewer than two times, this method should return -1.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.