Not sure if it's just a matter of personal taste, but nowadays I prefer Java's Stream operations (map, filter, …) instead of for-loops at least 90% of the time.
I find it easier to read, has lower risk of side effects, and selection makes it explicit whether first or last element is returned. #Java
I find it easier to read, has lower risk of side effects, and selection makes it explicit whether first or last element is returned. #Java
Comments