X952: ArrayList Contains Value

The method below takes in an ArrayList called arr. You can assume this ArrayList will only ever hold integers.

This method needs to return true if at least one element in arr is 4.

Otherwise this method needs to return false.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.