After filtering a Java 8 Stream it is common to use findFirst() or findAny() to get the element that survived the filter. But that might not do what you really meant and subtle bugs can ensue. So What’s Wrong With findFirst() And findAny()? As we can see from their Javadoc (here and here) both methods ...