It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.
In a recent project, I needed an easy way to traverse Java object trees and extract values from the objects. Instead of continually going through huge iterator-if-else setups, I wanted a tool that ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results