X1015: List Contains Value

The method below takes in a List called list. You can assume this list only holds integer values. Implement the method so that it returns true if at least one element in the list is the number 4. Otherwise, return false.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.