Java 8 Tutorials
Learn Java 8 streams by example: functional programming with filter, map, flatMap, reduce, collect, lambdas, sequential and parallel streams are covered in-depth in this tutorial....
56 Years Ago
Java 8 Stream Extract Distinct Words from File
In this tutorial you will learn how to extract distinct words from file using Java 8 Stream API. Files.lines() method returns a stream of strings from a specified file. Then further, we use to read e...
56 Years Ago
Java 8 Stream Find - Stream.findAny() and Stream.findFirst()
In this tutorial you will learn about finding elements in a Stream base on Predicate condition with the help of Stream.findAny() and Stream.findFirst() methods....
56 Years Ago
Java 8 Stream Match - Stream.allMatch(), Stream.anyMatch() and Stream.noneMatch()
In this tutorial you will learn about matching elements in a Stream base on Predicate condition with the help of Stream.allMatch(), Stream.anyMatch() and Stream.noneMatch() methods....
56 Years Ago
Java 8 Convert Stream to Array
In this tutorial you will learn how to convert a Stream into an Array using Java 8 API's. A java.util.stream.Stream.toArray() method return an array containing the elements of this stream....
56 Years Ago
Java 8 Stream Partitioning - stream.Collectors.partitioningBy()
Partitioning is a another grouping approach, in which the resultant Map contains two different groups, one for true values and another for false values. In our example we have partition input stream b...
56 Years Ago