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