Continuing from the last time, null relationship Java No.2 useful for business
How to filter a list of strings to retrieve the first one
Optional<String> firstStr = selectedList.stream()
.filter(p -> p=="fuga")
.findFirst();
When the return value from the external API contains 1 or 0 results, etc. It can be used unexpectedly.
Recommended Posts