java 9 stream

Java 9 Steam iterate

In java 8 Stream class has static method iterate() which provide stream using that we can work like  normal for…loop. Java 9 Steam iterate provide additional predicate method to terminate stream…

Java 9 Reactive Programming

Java 9 Reactive Programming with Flow API

Table of ContentsReactive streams:Reactive programming:The Flow Api:Publisher:Subscriber:Subscription:Processor:General Flow: Reactive streams: Reactive Streams aims to improve concurrency workflows for developers by solving the pain of back-pressure (when fast data source doesn’t…

JAVA 8 STREAM COLLECT EXAMPLE

Java 8 stream collect example

Table of ContentsExample 1: collect to List using Collectors filtering Output: Example 2: collect to List using Collectors mapping Output:Example 3: collect to Map using Collectors toMapExample 3: collect to Map using Collectors…

JAVA 8 JOIN STRING VALUES

Java 8 join string values

Using java 8 join string values example with different-different ways are specified here like using Collectors.joining while using stream, collect function of stream, StringJoiner class. Table of ContentsList of String…