A class like Person.java is often a data class that will need to be used in comparisons and possibly hashCode-based collection keys. It is important to create equals (Object) and hashCode () ...
It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results