It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.
If you’ve read my Java 101 tutorial introducing static classes and inner classes, you should be familiar with the basics of working with nested classes in Java code. In this associated tip, I’ll walk ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results