An Interface introduced in Java 8, contributed to declarative programming in Java. Declarative programming is a style of programming that […]
Tag: # stream
Teeing, a hidden gem in the Java API
Last week, I described a use-case for a custom Stream Collector. I received a intriguing comment on Twitter: Hats off […]
Java Stream Tree Walker
This article discusses walking a tree or graph of nodes with a Java 8 Stream implementation. The implementation is codified […]
Java 8 Stream API on Arrays
Java 8 introduced the concept of functional programming. My first instinct when I need to iterate is to use a […]
Refactoring code to Java 8 Stream API
You may be wondering why a blog post in 2021 is mentioning Java 8, as it came out over 7 […]
Streams Java
This concept was added to Java 8. Support functional-style operations on streams of elements, such as map-reduce transformations on collections. […]
FileInputStream vs FileReader in Java
To understand this thoroughly you need to understand what is character stream and what is byte stream, so let’s have […]
A real-world example of a Stream Collector
Java Stream’s Collectors methods fit most use-cases. They allow returning either a Collection or a scalar. For the former, you […]