java filter after first occurence code example
Example: lambda loop java fetch first element
yourStream
.filter(/* your criteria */)
.findFirst()
.get();
yourStream
.filter(/* your criteria */)
.findFirst()
.get();