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