It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.
This workshop implements exercises with one-dimensional arrays, matrices, and dynamic lists (ArrayList) in Java. It was developed applying principles of Object-Oriented Programming (OOP), Clean Code, ...
DATASTRUCTURE-JAVA/ ├── ArrayList/ ├── BinarySearch/ ├── BinarySearchChallenge/ ├── BubbleSort/ ├── DoubleLinkedListChallenge ...