X1090: 2D Generic Array Contains

The following method will appear in a class with a generic type parameter T. It takes in a 2D array of elements of that generic type T, along with a specific value of that same time. The method should search through the array and return true if the value is in the array, otherwise false.

Remember to use the correct method to compare objects (not ==). Also, practice using your early loop exit strategy to end the method as soon as the value is found.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.