It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.
Java Collections Framework is one of the core parts of the Java programming language. Collections are used in almost every programming language. Most of the programming languages support various type ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results