It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.
Along with lambdas, Java SE 8 brought method references to the Java language. This tutorial offers a brief overview of method references in Java, then gets you started using them with Java code ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果